all repos — nixfiles @ cfc78b6548f97733f156c8b02243f7346930d10d

System and user configuration, managed by nix and home-manager

Emacs: use undo-tree as undo system in evil
Alan Pearce alan@alanpearce.eu
Thu, 26 Nov 2020 10:17:29 +0100
commit

cfc78b6548f97733f156c8b02243f7346930d10d

parent

d2f23109a0c630c2487d580ea25998e6b5bd0864

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M user/emacs/init.eluser/emacs/init.el
@@ -281,7 +281,8 @@ :demand t   :commands (evil-mode evil-delete-buffer evil-ex-define-cmd)
   :config (progn
             (setq-default evil-shift-width 2)
-            (setq evil-mode-line-format nil)
+            (setq evil-mode-line-format nil
+                  evil-undo-system 'undo-tree)
             (add-to-list 'evil-emacs-state-modes 'eshell-mode)
             (add-to-list 'evil-emacs-state-modes 'ledger-reconcile-mode)
             (evil-mode +1))