From e65a5bb29bf73ab659d6d8d23bb7ba105dea3600 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Sat, 19 Mar 2022 00:22:54 +0800 Subject: Setup undo-tree history (emacs) --- .emacs.d/lisp/init-misc.el | 2 ++ 1 file changed, 2 insertions(+) (limited to '.emacs.d/lisp/init-misc.el') diff --git a/.emacs.d/lisp/init-misc.el b/.emacs.d/lisp/init-misc.el index f5f8b33..727227a 100644 --- a/.emacs.d/lisp/init-misc.el +++ b/.emacs.d/lisp/init-misc.el @@ -61,6 +61,8 @@ (add-hook 'after-init-hook 'global-undo-tree-mode)) (with-eval-after-load 'undo-tree (gx/diminish 'undo-tree-mode)) +(setq undo-tree-auto-save-history t + undo-tree-history-directory-alist `(("." . ,(concat user-emacs-directory "undo")))) (with-eval-after-load 'eldoc (gx/diminish 'eldoc-mode)) -- cgit v1.2.3