From 62050ef434ba89f0b918c0d96c5f7c101dab4078 Mon Sep 17 00:00:00 2001 From: Taylor Bockman Date: Tue, 6 Oct 2020 10:12:58 -0700 Subject: [PATCH] Move temp files to tmp instead of saving in the project --- dotfiles/emacs.d/init.el | 10 ++++++++++ 1 file changed, 10 insertions(+) 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