commit 09920d88711200744458028b9b723a642b453daa parent de69856761bdf2e48b78285898be135982dcf21e Author: Alex Balgavy <alex@balgavy.eu> Date: Fri, 25 Mar 2022 20:13:21 +0100 emacs: save undo tree info to ~/.emacs.d/undo-tree Diffstat:
M | emacs/config.org | | | 9 | +++++++++ |
1 file changed, 9 insertions(+), 0 deletions(-)
diff --git a/emacs/config.org b/emacs/config.org @@ -878,6 +878,15 @@ Sometimes it's better to look at undo history as a tree: :config (global-undo-tree-mode)) #+end_src + +Save undo files into ~/.emacs.d/undo-tree + +#+begin_src emacs-lisp + (let ((undo-tree-dir (concat user-emacs-directory "undo-tree/"))) + (unless (file-directory-p undo-tree-dir) (make-directory undo-tree-dir)) + (setq undo-tree-history-directory-alist `(("." . ,undo-tree-dir)))) +#+end_src + ** ledger #+begin_src emacs-lisp (use-package ledger-mode