]> git.eshelyaron.com Git - emacs.git/commitdiff
esh-mode: Add repeat-map for eshell-{forward,backward}-argument
authorBrian Leung <leungbk@posteo.net>
Wed, 9 Nov 2022 07:16:16 +0000 (23:16 -0800)
committerEli Zaretskii <eliz@gnu.org>
Thu, 17 Nov 2022 09:36:07 +0000 (11:36 +0200)
* lisp/eshell/esh-mode.el (eshell-command-repeat-map): New defvar.
(Bug#59144)

lisp/eshell/esh-mode.el

index 92523fd99ea6b3bc3fec9ee7c86b9664300b34c2..4357a0e29a07199773d364aafefb2c21b4ceba5d 100644 (file)
@@ -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 ()