diff --git a/dotfiles/emacs.d/init.el b/dotfiles/emacs.d/init.el index dbe0fd8..be5d634 100644 --- a/dotfiles/emacs.d/init.el +++ b/dotfiles/emacs.d/init.el @@ -51,6 +51,16 @@ There are two things you can do about this warning: (display-battery-mode 1) ;;-------------------------------------------------------------------------------------- +;; Set auto-save and backup directory to the temporary file directory in order +;; to keep projects free of annoying backups. +;;-------------------------------------------------------------------------------------- +(setq backup-directory-alist + `((".*" . ,temporary-file-directory))) +(setq auto-save-file-name-transforms + `((".*" ,temporary-file-directory t))) + + +;;-------------------------------------------------------------------------------------- ;; Always follow symbolic links to version controlled files ;; ;; I prefer this option because I generally only get this message when I edit