all repos — nixfiles @ 14c7fd647930130f70b712617822ca5c5f49f663

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

emacs: use native undo-redo instead of undo-tree package
Alan Pearce alan@alanpearce.eu
Sun, 30 Apr 2023 19:38:30 +0200
commit

14c7fd647930130f70b712617822ca5c5f49f663

parent

f6787504038ea5a69c4c2ed0cd73dfcc1a4558e4

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

jump to
M user/emacs/init.eluser/emacs/init.el
@@ -360,9 +360,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
-                  evil-undo-system 'undo-tree)
-            (evil-set-undo-system 'undo-tree)
+            (setq evil-mode-line-format nil)
+            (evil-set-undo-system 'undo-redo)
             (add-to-list 'evil-emacs-state-modes 'eshell-mode)
             (add-to-list 'evil-emacs-state-modes 'ledger-reconcile-mode)
             (evil-mode +1))
@@ -694,12 +693,6 @@ (electric-pair-mode +1) 
 (use-package ws-butler
   :ghook ('prog-mode-hook))
-
-(use-package undo-tree
-  :defer 1
-  :config (progn
-            (setq undo-tree-auto-save-history nil)
-            (global-undo-tree-mode)))
 
 (use-package rainbow-mode
   :ghook ('(css-mode-hook
M user/settings/emacs.nixuser/settings/emacs.nix
@@ -152,7 +152,6 @@ toml-mode         tree-sitter
         tree-sitter-langs
         tree-sitter-indent
-        undo-tree
         use-package
         vertico
         vertico-prescient