aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/emacs/init.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/config/emacs/init.el b/config/emacs/init.el
index f53dbe0..dbcd039 100644
--- a/config/emacs/init.el
+++ b/config/emacs/init.el
@@ -37,6 +37,10 @@
"Show trailing whitespace for the current buffer."
(setq show-trailing-whitespace t))
+(defun init/auto-save-directory ()
+ "The auto-save directory where the save file lives."
+ (file-name-directory (concat auto-save-list-file-prefix "1-localhost")))
+
(defun init/open-init ()
"Opens the Emacs init.el configuration file."
(interactive)
@@ -87,6 +91,7 @@
(tab-width 2)
(backup-by-copying t)
(backup-directory-alist `((".*" . ,(init/expand-file-name "backup"))))
+ (auto-save-file-name-transforms `((".*" ,(init/auto-save-directory) t)))
(create-lockfiles nil)
(tab-width 4)
(custom-file (init/expand-file-name "local-init.el")))