Integration: Change namespace for evil-turn-on-undo-tree-mode
This commit is contained in:
parent
0c990bc639
commit
95f1da485b
|
@ -200,7 +200,7 @@
|
|||
|
||||
(eval-after-load 'undo-tree
|
||||
'(with-no-warnings
|
||||
(defun evil-turn-on-undo-tree-mode ()
|
||||
(defun evil-collection-integration-turn-on-undo-tree-mode ()
|
||||
"Enable `undo-tree-mode' if evil is enabled.
|
||||
This function enables `undo-tree-mode' when Evil is activated in
|
||||
some buffer, but only if `global-undo-tree-mode' is also
|
||||
|
@ -209,7 +209,7 @@ activated."
|
|||
global-undo-tree-mode)
|
||||
(turn-on-undo-tree-mode)))
|
||||
|
||||
(add-hook 'evil-local-mode-hook #'evil-turn-on-undo-tree-mode)
|
||||
(add-hook 'evil-local-mode-hook #'evil-collection-integration-turn-on-undo-tree-mode)
|
||||
|
||||
(defadvice undo-tree-visualize (after evil activate)
|
||||
"Initialize Evil in the visualization buffer."
|
||||
|
|
Loading…
Reference in New Issue