Integration: Change namespace for evil-turn-on-undo-tree-mode

This commit is contained in:
James Nguyen 2017-12-28 21:00:12 -08:00 committed by James N
parent 0c990bc639
commit 95f1da485b
1 changed files with 2 additions and 2 deletions

View File

@ -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."