diff options
author | Brian Leung <leungbk@posteo.net> | 2022-11-08 22:11:15 -0800 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2022-11-17 11:35:34 +0200 |
commit | d9d8ea61422797f3f7340716fef704ffe1203dec (patch) | |
tree | 76ebd21d0ec7eca137ffadc4a88858c9d5dbcaae /lisp/eshell/em-prompt.el | |
parent | 84472c3363e4e80ec68e38eb798e8c4c15dc208e (diff) | |
download | emacs-d9d8ea61422797f3f7340716fef704ffe1203dec.tar.gz emacs-d9d8ea61422797f3f7340716fef704ffe1203dec.tar.bz2 emacs-d9d8ea61422797f3f7340716fef704ffe1203dec.zip |
em-prompt: Add repeat-map for eshell-{next,previous}-prompt
* lisp/eshell/em-prompt.el (eshell-prompt-repeat-map): New keymap.
(Bug#59144)
Diffstat (limited to 'lisp/eshell/em-prompt.el')
-rw-r--r-- | lisp/eshell/em-prompt.el | 8 |
1 files changed, 8 insertions, 0 deletions
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 |