add fancier hook for undo-tree
This commit is contained in:
parent
29b9be98bf
commit
6cb14c05b8
2 changed files with 12 additions and 6 deletions
|
@ -1507,9 +1507,12 @@ Open a nodal history graph in a new window to navigate all previous histories wi
|
|||
#+begin_src emacs-lisp :tangle "nebkor-modules/nebkor-essentials.el"
|
||||
(use-package undo-tree
|
||||
:ensure t
|
||||
:init
|
||||
:config
|
||||
(defun nebkor/undo-tree ()
|
||||
(progn
|
||||
(global-undo-tree-mode)
|
||||
(blackout 'undo-tree-mode)
|
||||
(blackout 'undo-tree-mode)))
|
||||
:hook (elpaca-after-init . nebkor/undo-tree)
|
||||
:bind (("C-z" . undo)
|
||||
("C-S-z" . redo)))
|
||||
#+end_src
|
||||
|
|
|
@ -210,9 +210,12 @@ If the region is selected, retain the original behaviour, otherwise call
|
|||
|
||||
(use-package undo-tree
|
||||
:ensure t
|
||||
:init
|
||||
:config
|
||||
(defun nebkor/undo-tree ()
|
||||
(progn
|
||||
(global-undo-tree-mode)
|
||||
(blackout 'undo-tree-mode)
|
||||
(blackout 'undo-tree-mode)))
|
||||
:hook (elpaca-after-init . nebkor/undo-tree)
|
||||
:bind (("C-z" . undo)
|
||||
("C-S-z" . redo)))
|
||||
|
||||
|
|
Loading…
Reference in a new issue