Thursday 15 May 2014

Weird generated files from Emacs -



Weird generated files from Emacs -

i find there lot of files 1 below generated emacs. files ? , there can set them in 1 place , stop hanging around in project ?

app/helpers/#application_helper.rb#

thanks

these files automatically saved versions of files edited emacs. can tell emacs set auto-save files , backup files (those ending on ~) in 1 place adding .emacs or .emacs.d/init.el file:

(setq backup-directory-alist `((".*" . ,(expand-file-name (concat user-emacs-directory "backups")))) (setq auto-save-file-name-transforms `((".*" ,(expand-file-name (concat user-emacs-directory "backups") t)))

this set directory ~/.emacs.d/backups/. mutual thing setting directory temp directory:

(setq backup-directory-alist `((".*" . ,temporary-file-directory))) (setq auto-save-file-name-transforms `((".*" ,temporary-file-directory t)))

alternatively, disable auto-saving not recommended.

edit: found related question lots of advice on how configure behaviour: how command how emacs makes backup files?

emacs

No comments:

Post a Comment