ENH integrate evil mode with undo-tree
This commit is contained in:
parent
bfcf21c244
commit
573b4817f3
|
@ -775,6 +775,8 @@ Company provides a dropdown of completion options. It has many backends which ar
|
||||||
I find it weird that most programs do not have a tree-like tool to navigate undo information...because this is literally how most programs store this data.
|
I find it weird that most programs do not have a tree-like tool to navigate undo information...because this is literally how most programs store this data.
|
||||||
|
|
||||||
=undo-tree= package adds a nice undo tree buffer to visualize history and also displays diffs to easily show what changed.
|
=undo-tree= package adds a nice undo tree buffer to visualize history and also displays diffs to easily show what changed.
|
||||||
|
|
||||||
|
Undo tree is also used by evil mode (see below).
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package undo-tree
|
(use-package undo-tree
|
||||||
:straight t
|
:straight t
|
||||||
|
@ -3934,9 +3936,12 @@ I like being evil. All package and custom bindings go here.
|
||||||
(use-package evil
|
(use-package evil
|
||||||
:straight t
|
:straight t
|
||||||
:init
|
:init
|
||||||
|
:after undo-tree
|
||||||
;; this is required to make evil collection work
|
;; this is required to make evil collection work
|
||||||
(setq evil-want-integration t
|
(setq evil-want-integration t
|
||||||
evil-want-keybinding nil)
|
evil-want-keybinding nil
|
||||||
|
;; evil now integrates with undo-tree
|
||||||
|
evil-undo-system 'undo-tree)
|
||||||
:config
|
:config
|
||||||
(evil-mode 1))
|
(evil-mode 1))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
Loading…
Reference in New Issue