diff options
author | sterni <sternenseemann@systemli.org> | 2022-01-17T13·06+0100 |
---|---|---|
committer | sterni <sternenseemann@systemli.org> | 2022-01-17T13·11+0000 |
commit | a22bd77859dad16769ae350070d9d49a3c9b4d41 (patch) | |
tree | 8e3ea15e3b5af7c95887dd3ecddbb2d50e366937 /users | |
parent | 1164f138a69fbc2796646f7f12f5662781715978 (diff) |
refactor(users/sterni/emacs): use more persistent tmp dir r/3615
Change-Id: I703b7678405f29bc4f0f04e1b42fd35025a80971 Reviewed-on: https://cl.tvl.fyi/c/depot/+/4982 Tested-by: BuildkiteCI Reviewed-by: sterni <sternenseemann@systemli.org>
Diffstat (limited to 'users')
-rw-r--r-- | users/sterni/emacs/init.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/users/sterni/emacs/init.el b/users/sterni/emacs/init.el index 0db4abecf066..fb5eebfc87d7 100644 --- a/users/sterni/emacs/init.el +++ b/users/sterni/emacs/init.el @@ -44,7 +44,10 @@ (mouse-wheel-mode t) (blink-cursor-mode -1)) -;; TODO(sterni): prevent some remaining backup files +;; /tmp is a tmpfs, but we may want to recover from power loss +(custom-set-variables + `(temporary-file-directory ,(concat (getenv "HOME") "/.emacs/tmp"))) + (setq auto-save-file-name-transforms `((".*" ,temporary-file-directory t))) (setq backup-directory-alist |