emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/vundo aefb233005 34/58: Fix #9: Disable evil-mode in vu


From: ELPA Syncer
Subject: [elpa] externals/vundo aefb233005 34/58: Fix #9: Disable evil-mode in vundo-mode
Date: Fri, 15 Apr 2022 12:58:14 -0400 (EDT)

branch: externals/vundo
commit aefb2330050932b153530674e7e45063f8bc2dd0
Author: Campbell Barton <ideasman42@gmail.com>
Commit: Yuan Fu <casouri@gmail.com>

    Fix #9: Disable evil-mode in vundo-mode
    
    Evil-mode binds arrow keys which we want vundo to use.
    
    * vundo.el (vundo-mode): Add code to exclude vundo from evil-mode.
---
 vundo.el | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/vundo.el b/vundo.el
index 94b7d03375..fbf371fdb2 100644
--- a/vundo.el
+++ b/vundo.el
@@ -538,7 +538,12 @@ WINDOW is the window that was/is displaying the vundo 
buffer."
         truncate-lines t
         cursor-type nil)
   (jit-lock-mode -1)
-  (face-remap-add-relative 'default 'vundo-default))
+  (face-remap-add-relative 'default 'vundo-default)
+
+  ;; Disable evil-mode, as normal-mode
+  ;; key bindings override the ones set by vundo.
+  (when (boundp 'evil-emacs-state-modes)
+    (push 'vundo-mode evil-emacs-state-modes)))
 
 (defvar-local vundo--prev-mod-list nil
   "Modification list generated by ‘vundo--mod-list-from’.")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]