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'.
This commit is contained in:
Stefan Kangas 2022-07-02 16:56:39 +02:00
parent 1ee1d21c75
commit ad73b588d4

View file

@ -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