From: Stefan Kangas Date: Sat, 2 Jul 2022 14:56:39 +0000 (+0200) Subject: Make dired-jump repeatable in repeat-mode X-Git-Tag: emacs-29.0.90~1447^2~1264 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ad73b588d48367dbef35c7561f79473317bd81f9;p=emacs.git Make dired-jump repeatable in repeat-mode * lisp/dired.el (dired-jump-map): New variable. (dired-jump): Put 'repeat-map' property with 'dired-jump-map'. --- diff --git a/lisp/dired.el b/lisp/dired.el index dc7400d46e0..d7bf6316882 100644 --- a/lisp/dired.el +++ b/lisp/dired.el @@ -4797,6 +4797,11 @@ Interactively with prefix argument, read FILE-NAME." (read-file-name "Jump to Dired file: ")))) (dired-jump t file-name)) +(defvar-keymap dired-jump-map + :doc "Keymap to repeat `dired-jump'. Used in `repeat-mode'." + "C-j" #'dired-jump) +(put 'dired-jump 'repeat-map 'dired-jump-map) + ;;; Miscellaneous commands