projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ee1d21
)
Make dired-jump repeatable in repeat-mode
author
Stefan Kangas
<stefan@marxist.se>
Sat, 2 Jul 2022 14:56:39 +0000
(16:56 +0200)
committer
Stefan Kangas
<stefan@marxist.se>
Sat, 2 Jul 2022 15:09:22 +0000
(17:09 +0200)
* lisp/dired.el (dired-jump-map): New variable.
(dired-jump): Put 'repeat-map' property with 'dired-jump-map'.
lisp/dired.el
patch
|
blob
|
history
diff --git
a/lisp/dired.el
b/lisp/dired.el
index dc7400d46e0ef0dfbb5b9ecc06e23380ba29cac3..d7bf6316882d74213475d986ca26ce94dd406ce7 100644
(file)
--- 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)
+
\f
;;; Miscellaneous commands