>From 565fc60e55813caefe431f34f08befd47f15a073 Mon Sep 17 00:00:00 2001 From: Brian Leung Date: Tue, 8 Nov 2022 23:16:16 -0800 Subject: [PATCH 3/4] esh-mode: Add repeat-map for eshell-{forward,backward}-argument * lisp/eshell/esh-mode.el (eshell-command-repeat-map): New defvar. --- 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 @@ eshell-command-map "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 () -- 2.38.1