emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master bd21696ff0 3/4: esh-mode: Add repeat-map for eshell-{forward, ba


From: Eli Zaretskii
Subject: master bd21696ff0 3/4: esh-mode: Add repeat-map for eshell-{forward, backward}-argument
Date: Thu, 17 Nov 2022 04:37:29 -0500 (EST)

branch: master
commit bd21696ff0c52f27a03f6dc538207da8710ed4c5
Author: Brian Leung <leungbk@posteo.net>
Commit: Eli Zaretskii <eliz@gnu.org>

    esh-mode: Add repeat-map for eshell-{forward,backward}-argument
    
    * lisp/eshell/esh-mode.el (eshell-command-repeat-map): New defvar.
    (Bug#59144)
---
 lisp/eshell/esh-mode.el | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/lisp/eshell/esh-mode.el b/lisp/eshell/esh-mode.el
index 92523fd99e..4357a0e29a 100644
--- a/lisp/eshell/esh-mode.el
+++ b/lisp/eshell/esh-mode.el
@@ -280,6 +280,14 @@ This is used by `eshell-watch-for-password-prompt'."
   "C-w" #'backward-kill-word
   "C-y" #'eshell-repeat-argument)
 
+(defvar-keymap eshell-command-repeat-map
+  :doc "Keymap to repeat eshell-command key sequences.  Used in `repeat-mode'."
+  "C-f" #'eshell-forward-argument
+  "C-b" #'eshell-backward-argument)
+
+(put #'eshell-forward-argument 'repeat-map 'eshell-command-repeat-map)
+(put #'eshell-backward-argument 'repeat-map 'eshell-command-repeat-map)
+
 ;;; User Functions:
 
 (defun eshell-kill-buffer-function ()



reply via email to

[Prev in Thread] Current Thread [Next in Thread]