[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master d9d8ea6142 2/4: em-prompt: Add repeat-map for eshell-{next, previ
From: |
Eli Zaretskii |
Subject: |
master d9d8ea6142 2/4: em-prompt: Add repeat-map for eshell-{next, previous}-prompt |
Date: |
Thu, 17 Nov 2022 04:37:27 -0500 (EST) |
branch: master
commit d9d8ea61422797f3f7340716fef704ffe1203dec
Author: Brian Leung <leungbk@posteo.net>
Commit: Eli Zaretskii <eliz@gnu.org>
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 a1a91e7d63..a8744de1db 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
- master updated (6678572110 -> a0ee57c80d), Eli Zaretskii, 2022/11/17
- master a0ee57c80d 4/4: shell: Add repeat-map for shell-{forward, backward}-prompt, Eli Zaretskii, 2022/11/17
- master d9d8ea6142 2/4: em-prompt: Add repeat-map for eshell-{next, previous}-prompt,
Eli Zaretskii <=
- master 84472c3363 1/4: comint: Add repeat-map for comint-{next, previous}-prompt, Eli Zaretskii, 2022/11/17
- master bd21696ff0 3/4: esh-mode: Add repeat-map for eshell-{forward, backward}-argument, Eli Zaretskii, 2022/11/17