From: Brian Leung Date: Wed, 9 Nov 2022 06:11:15 +0000 (-0800) Subject: em-prompt: Add repeat-map for eshell-{next,previous}-prompt X-Git-Tag: emacs-29.0.90~1616^2~114 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d9d8ea61422797f3f7340716fef704ffe1203dec;p=emacs.git em-prompt: Add repeat-map for eshell-{next,previous}-prompt * lisp/eshell/em-prompt.el (eshell-prompt-repeat-map): New keymap. (Bug#59144) --- diff --git a/lisp/eshell/em-prompt.el b/lisp/eshell/em-prompt.el index a1a91e7d634..a8744de1dba 100644 --- a/lisp/eshell/em-prompt.el +++ b/lisp/eshell/em-prompt.el @@ -100,6 +100,14 @@ arriving, or after." "C-c C-n" #'eshell-next-prompt "C-c C-p" #'eshell-previous-prompt) +(defvar-keymap eshell-prompt-repeat-map + :doc "Keymap to repeat eshell-prompt key sequences. Used in `repeat-mode'." + "C-n" #'eshell-next-prompt + "C-p" #'eshell-previous-prompt) + +(put #'eshell-next-prompt 'repeat-map 'eshell-prompt-repeat-map) +(put #'eshell-previous-prompt 'repeat-map 'eshell-prompt-repeat-map) + ;;; Functions: (define-minor-mode eshell-prompt-mode