From: Brian Leung Date: Wed, 9 Nov 2022 07:16:16 +0000 (-0800) Subject: esh-mode: Add repeat-map for eshell-{forward,backward}-argument X-Git-Tag: emacs-29.0.90~1616^2~113 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bd21696ff0c52f27a03f6dc538207da8710ed4c5;p=emacs.git esh-mode: Add repeat-map for eshell-{forward,backward}-argument * lisp/eshell/esh-mode.el (eshell-command-repeat-map): New defvar. (Bug#59144) --- diff --git a/lisp/eshell/esh-mode.el b/lisp/eshell/esh-mode.el index 92523fd99ea..4357a0e29a0 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 ()