Skip to content

Commit da2d9cd

Browse files
phikalusername231419
authored andcommitted
Add support for 'repeat-mode'
1 parent 75c13f9 commit da2d9cd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

generic/proof-menu.el

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,15 @@ without adjusting window layout."
143143
;; NB: C-c ` is next-error in universal-keys
144144
(proof-define-keys map proof-universal-keys))
145145

146+
(defvar proof-repeat-map
147+
(let ((map (make-sparse-keymap)))
148+
(define-key map (kbd "C-n") #'proof-assert-next-command-interactive)
149+
(define-key map (kbd "C-u") #'proof-undo-last-successful-command)
150+
map))
151+
152+
;; support for `repeat-mode' (≥Emacs 28)
153+
(put #'proof-assert-next-command-interactive 'repeat-map 'proof-repeat-map)
154+
(put #'proof-undo-last-successful-command 'repeat-map 'proof-repeat-map)
146155

147156

148157
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

0 commit comments

Comments
 (0)