esh-mode: Add repeat-map for eshell-{forward,backward}-argument

* lisp/eshell/esh-mode.el (eshell-command-repeat-map): New defvar.
(Bug#59144)
This commit is contained in:
Brian Leung 2022-11-08 23:16:16 -08:00 committed by Eli Zaretskii
parent d9d8ea6142
commit bd21696ff0

View 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 ()