dot/emacs: Add bindings for `dired-jump' and `dired-jump-other-window'.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 6 May 2020 17:51:47 +0000 (18:51 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Wed, 6 May 2020 18:10:46 +0000 (19:10 +0100)
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

index f2f7b73..44684ee 100644 (file)
--- a/dot/emacs
+++ b/dot/emacs
   (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)
                                   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])