branch: elpa/undo-fu
commit c5bb7b0402ea6d16b760afffec9d08f78a0b692d
Author: Campbell Barton <[email protected]>
Commit: Campbell Barton <[email protected]>
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