From ef363257a06ab8f1f5433126d306360241fd700d Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Mon, 14 Mar 2022 01:31:05 -0400 Subject: [PATCH] Dump all undo tree history files in one directory --- .emacs.d/init.el | 4 +++- .gitignore | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 88b6cca..5c1e06d 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -477,7 +477,9 @@ :config (bind-key "M-/" 'undo-tree-visualize) (global-undo-tree-mode) - (setq undo-tree-enable-undo-in-region nil)) + (setq undo-tree-enable-undo-in-region nil + undo-tree-history-directory-alist + `(("." . ,(concat user-emacs-directory "undo-tree-hist"))))) (use-package hydra :ensure :demand :config diff --git a/.gitignore b/.gitignore index 232edcd..f9fa79d 100644 --- a/.gitignore +++ b/.gitignore @@ -31,3 +31,4 @@ /.emacs.d/eshell/history /.emacs.d/eaf/ /.emacs.d/recentf +/.emacs.d/undo-tree-hist/