1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

Make winner key sequences repeatable in repeat-mode

* lisp/winner.el (winner-repeat-map): New variable.
(winner-undo, winner-redo): Put 'repeat-map' property with
'winner-repeat-map'.  (Bug#58799)
This commit is contained in:
Damien Cassou 2022-10-26 16:53:23 +02:00 committed by Stefan Kangas
parent 16686bdb86
commit 0922e755d2

View file

@ -328,6 +328,14 @@ You may want to include buffer names such as *Help*, *Apropos*,
map)
"Keymap for Winner mode.")
(defvar-keymap winner-repeat-map
:doc "Keymap to repeat winner key sequences. Used in `repeat-mode'."
"<left>" #'winner-undo
"<right>" #'winner-redo)
(put #'winner-undo 'repeat-map 'winner-repeat-map)
(put #'winner-redo 'repeat-map 'winner-repeat-map)
;;;###autoload
(define-minor-mode winner-mode