From da337d4d4e588b991f87d0a7ce1cf4cacb57c6b1 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Wed, 6 May 2020 18:51:47 +0100 Subject: [PATCH] dot/emacs: Add bindings for `dired-jump' and `dired-jump-other-window'. And the necessary autoloads. They ought to work already, but don't on Emacs 24 for some reason. The bindings are standard, except for `C-x 4 j', which ought to exist but doesn't. --- dot/emacs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dot/emacs b/dot/emacs index f2f7b73..44684ee 100644 --- a/dot/emacs +++ b/dot/emacs @@ -705,6 +705,9 @@ (global-set-key [?\C-c ?w left] 'windmove-left) (global-set-key [?\C-c ?w right] 'windmove-right) (global-set-key [?\C-h ?\C-m] 'manual-entry) + (global-set-key [?\C-x ?4 ?\C-j] 'dired-jump-other-window) + (global-set-key [?\C-x ?4 ?j] 'dired-jump-other-window) + (global-set-key [?\C-x ?\C-j] 'dired-jump) (global-set-key [?\C-x ?\C-n] 'skel-create-file) (global-set-key [?\C-x ?4 ?n] 'skel-create-file-other-window) (global-set-key [?\C-x ?5 ?n] 'skel-create-file-other-frame) @@ -733,6 +736,9 @@ try-expand-list-all-buffers))) hippie-expand-try-functions-list))) +(autoload 'dired-jump "dired-x") +(autoload 'dired-jump-other-window "dired-x") + (eval-after-load "dired" '(progn (or (lookup-key dired-mode-map [?\C-x ?\C-q]) -- 2.11.0