updated config for undo-tree to enable the undos in a central dir

This commit is contained in:
Jason Tian 2024-07-19 15:35:20 +08:00
parent 7ea4893afd
commit 975f872806

View file

@ -672,7 +672,11 @@
(use-package undo-tree
:config
(global-undo-tree-mode)
)
(setq undo-tree-auto-save-history t)
(let ((undo-dir (expand-file-name "undo" user-emacs-directory)))
(unless (file-exists-p undo-dir)
(make-directory undo-dir t))
(setq undo-tree-history-directory-alist `(("." . ,undo-dir)))))
(use-package vertico
:init