From a36cbbe4eb6d73b1792a1d5ddde55f20ce997e03 Mon Sep 17 00:00:00 2001 From: Riyyi Date: Wed, 16 Mar 2022 11:46:14 +0100 Subject: [PATCH] Emacs: Store undo history in the cache directory --- .config/emacs/config/evil.org | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.config/emacs/config/evil.org b/.config/emacs/config/evil.org index 4463fa1..48759c1 100644 --- a/.config/emacs/config/evil.org +++ b/.config/emacs/config/evil.org @@ -11,7 +11,10 @@ Evil mode and related packages. #+BEGIN_SRC emacs-lisp (use-package undo-tree - :config (global-undo-tree-mode)) + :config + (setq undo-tree-auto-save-history t) + (setq undo-tree-history-directory-alist `(("." . ,(concat dot-cache-dir "/undo-tree")))) + (global-undo-tree-mode)) (use-package goto-chg) @@ -48,7 +51,7 @@ Vim equivalence: " (interactive) (evil-shift-left-line 1)) - (defun dot/evil-insert-shift-right () + (defun dot/evil-insert-shift-right () "Shift line right, retains cursor position. Vim equivalence: "