diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-08-11 04:58:04 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-08-11 04:58:04 +0200 |
commit | 15b26c84cbb7b37c7d9e5eb99e6693aba30b6855 (patch) | |
tree | e03987f0da842f0a71e6f034f261992a48914b6e /.config | |
parent | 3e54d15d6beda52264973ad05b34edd17b985b0e (diff) |
emacs: Define ‘backup-directory-alist’
This should assist in getting all those *~ files out of the way
Diffstat (limited to '.config')
-rw-r--r-- | .config/emacs/config.org | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/.config/emacs/config.org b/.config/emacs/config.org index 1998211..2ce2d82 100644 --- a/.config/emacs/config.org +++ b/.config/emacs/config.org @@ -40,7 +40,7 @@ is simply because I need to use them here. #+END_SRC -** XDG Directories +** TODO XDG Directories We want to define variables for the main XDG directories for Emacs to use. These are nice for keeping things organized and out of the way. @@ -84,11 +84,15 @@ We also need to ensure our directories actually exist. We don’t want to have all sorts of random garbage populating the configuartion directory; let’s throw it all in the cache directory instead. +# TODO: https://stackoverflow.com/a/151946 + #+BEGIN_SRC elisp (setq user-emacs-directory mm-cache-directory - auto-save-list-file-prefix (expand-file-name "auto-save-list" - mm-cache-directory)) + auto-save-list-file-prefix (expand-file-name "auto-save-list/" + mm-cache-directory) + backup-directory-alist`(("." . ,(expand-file-name "backups" + mm-cache-directory)))) #+END_SRC |