From b34d1af05042129af7d53c134faed7ae23afea74 Mon Sep 17 00:00:00 2001 From: Jacopo De Simoi Date: Sun, 21 Dec 2025 14:16:17 -0500 Subject: [PATCH] Manage cleanly autosave and backup --- custom.el | 2 -- global.org | 8 +++++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/custom.el b/custom.el index 7a5f595..6ffbeaf 100644 --- a/custom.el +++ b/custom.el @@ -8,8 +8,6 @@ '(TeX-fold-type-list '(env)) '(TeX-newline-function 'reindent-then-newline-and-indent) '(auth-source-save-behavior nil) - '(auto-save-file-name-transforms '((".*" "~/.emacs.d/autosaves/\\1" t))) - '(backup-directory-alist '((".*" . "~/.emacs.d/backup/"))) '(beacon-blink-duration 0.15) '(beacon-color "#969696") '(bsn-backends '(msn)) diff --git a/global.org b/global.org index 25a3273..6f85f2c 100644 --- a/global.org +++ b/global.org @@ -105,9 +105,11 @@ Put autosave files (ie #foo#) and backup files (ie foo~) in ~/.emacs.d/. create the autosave dir if necessary, since emacs won't. #+begin_src emacs-lisp - (make-directory "~/.emacs.d/autosaves/" t) - (make-directory "~/.emacs.d/backup/" t) - #+end_src + (dolist (dir '("~/.emacs.d/autosaves/" "~/.emacs.d/backup/")) + (make-directory dir t)) + (setq auto-save-file-name-transforms '((".*" "~/.emacs.d/autosaves/\\1" t)) + backup-directory-alist '((".*" . "~/.emacs.d/backup/"))) + #+end_src * Themes Use (my clone of) the solarized theme