From d9d8ea61422797f3f7340716fef704ffe1203dec Mon Sep 17 00:00:00 2001 From: Brian Leung Date: Tue, 8 Nov 2022 22:11:15 -0800 Subject: [PATCH] em-prompt: Add repeat-map for eshell-{next,previous}-prompt * lisp/eshell/em-prompt.el (eshell-prompt-repeat-map): New keymap. (Bug#59144) --- lisp/eshell/em-prompt.el | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.39.2