mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-06 03:40:56 -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:
parent
16686bdb86
commit
0922e755d2
1 changed files with 8 additions and 0 deletions
|
|
@ -328,6 +328,14 @@ You may want to include buffer names such as *Help*, *Apropos*,
|
||||||
map)
|
map)
|
||||||
"Keymap for Winner mode.")
|
"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
|
;;;###autoload
|
||||||
(define-minor-mode winner-mode
|
(define-minor-mode winner-mode
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue