use good old undo-tree instead of undo-fu

This commit is contained in:
Vladan Popovic 2022-04-07 23:55:59 +02:00
parent 7717bd7db9
commit a26c5a744a

13
init.el
View file

@ -24,7 +24,13 @@
(setq column-number-mode t) (setq column-number-mode t)
(setq ido-use-filename-at-point nil) (setq ido-use-filename-at-point nil)
(use-package undo-fu) (use-package undo-tree
:ensure t
:after evil
:diminish
:config
(evil-set-undo-system 'undo-tree)
(global-undo-tree-mode 1))
(use-package evil (use-package evil
:ensure t ;; install the evil package if not installed :ensure t ;; install the evil package if not installed
:init ;; tweak evil's configuration before loading it :init ;; tweak evil's configuration before loading it
@ -34,10 +40,9 @@
(setq evil-split-window-below t) (setq evil-split-window-below t)
(setq evil-shift-round nil) (setq evil-shift-round nil)
(setq evil-want-C-u-scroll t) (setq evil-want-C-u-scroll t)
(setq evil-undo-system 'undo-fu) (setq evil-want-C-i-jump nil) ;; so that TAB is operational in org
:config ;; tweak evil after loading it :config
(evil-mode) (evil-mode)
;; example how to map a command in normal mode (called 'normal state' in evil)
(define-key evil-normal-state-map (kbd ", w") 'evil-window-vsplit)) (define-key evil-normal-state-map (kbd ", w") 'evil-window-vsplit))
(use-package rg (use-package rg