From f04b1f36fc34f2241e2e2c41b86631580e0e2ae7 Mon Sep 17 00:00:00 2001 From: Howard Abrams Date: Thu, 3 Mar 2022 15:18:56 -0800 Subject: [PATCH] WHo knew that backup-directory-alist didn't accept ~ characters? --- ha-config.org | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ha-config.org b/ha-config.org index c79999e..1da16bc 100644 --- a/ha-config.org +++ b/ha-config.org @@ -32,8 +32,8 @@ New way to display line-numbers. I set mine to =relative= so that I can easily j As [[https://philjackson.github.io//emacs/backups/2022/01/31/keeping-backups-of-every-edited-file/][Phil Jackson]] mentioned, Emacs has a lot of file backup strategy, and either change the [[help:backup-directory-alist][backup-directory-alist]] to put individual file backups elsewhere, e.g. -#+BEGIN_SRC emacs-lisp :tangle no - (setq backup-directory-alist `(("." . "~/.backups"))) +#+BEGIN_SRC emacs-lisp + (setq backup-directory-alist `(("." . ,(concat user-emacs-directory "backups")))) #+END_SRC Or leave them in the current directory, but create an alias to =ls= to normally not see them, e.g.