From 15b26c84cbb7b37c7d9e5eb99e6693aba30b6855 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Fri, 11 Aug 2023 04:58:04 +0200 Subject: emacs: Define ‘backup-directory-alist’ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This should assist in getting all those *~ files out of the way --- .config/emacs/config.org | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to '.config') 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 -- cgit v1.2.3