commit d2172c858a62f412b52d8c10992249921079bbe7 parent 5caa2a19a19d5dae5c3e84a74e95e6b11270c299 Author: Alex Balgavy <alex@balgavy.eu> Date: Tue, 29 Jun 2021 15:18:05 +0200 emacs: set up autosave file location Diffstat:
M | emacs/config.org | | | 13 | +++++++++++-- |
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/emacs/config.org b/emacs/config.org @@ -195,12 +195,21 @@ (global-display-line-numbers-mode) #+end_src +* Auto-Save files + By default, auto-save files ("#file#") are placed in the same directory as the file itself. + I want to put this all in some unified place: + + #+begin_src emacs-lisp + (setq auto-save-file-name-transforms + `((".*" "~/.local/share/emacs/saves/" t))) + #+end_src + * Backup files By default, backup files (those with a tilde) are saved in the same directory as the currently edited file. - This setting puts them in ~/.local/share/emacs/saves. + This setting puts them in ~/.local/share/emacs/backups. #+begin_src emacs-lisp - (setq backup-directory-alist '(("." . "~/.local/share/emacs/saves"))) + (setq backup-directory-alist '(("." . "~/.local/share/emacs/backups"))) (setq backup-by-copying t) #+end_src