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

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

[nongnu] elpa/undo-fu c5bb7b0402 22/82: Evil Mode: mark undo commands no


From: ELPA Syncer
Subject: [nongnu] elpa/undo-fu c5bb7b0402 22/82: Evil Mode: mark undo commands not to repeat
Date: Thu, 7 Jul 2022 12:04:50 -0400 (EDT)

branch: elpa/undo-fu
commit c5bb7b0402ea6d16b760afffec9d08f78a0b692d
Author: Campbell Barton <ideasman42@gmail.com>
Commit: Campbell Barton <ideasman42@gmail.com>

    Evil Mode: mark undo commands not to repeat
    
    Undo was interfering with repeating the last command in evil-mode.
---
 undo-fu.el | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/undo-fu.el b/undo-fu.el
index a97abd894d..53b9af8f4a 100644
--- a/undo-fu.el
+++ b/undo-fu.el
@@ -309,6 +309,14 @@ Optional argument ARG the number of steps to undo."
           (setq undo-fu--checkpoint-is-blocking nil)))))
   (setq this-command 'undo-fu-only-undo))
 
+;; Evil Mode (setup if in use)
+;;
+;; Don't let these commands repeat.
+(with-eval-after-load 'evil
+  (evil-declare-not-repeat 'undo-fu-only-undo)
+  (evil-declare-not-repeat 'undo-fu-only-redo)
+  (evil-declare-not-repeat 'undo-fu-only-redo-all))
+
 (provide 'undo-fu)
 
 ;;; undo-fu.el ends here



reply via email to

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