Dired Extra Version 2 User's Manual. Node: Optional Installation Dired Jump

PREV Installation UP Installation NEXT Optional Installation File At Point

2.1: Optional Installation Dired Jump

In order to have dired-jump and dired-jump-other-window (See Miscellaneous Commands) work before dired and dired-x have been properly loaded the user should set-up an autoload for these functions. In your `.emacs' file put

;;; Autoload `dired-jump' and `dired-jump-other-window'.
;;; We autoload from FILE dired.el.  This will then load dired-x.el 
;;; and hence define `dired-jump' and `dired-jump-other-window'.
(define-key global-map "\C-x\C-j" 'dired-jump)
(define-key global-map "\C-x4\C-j" 'dired-jump-other-window)

(autoload (quote dired-jump) "dired" "\
Jump to dired buffer corresponding to current buffer.
If in a file, dired the current directory and move to file's line.
If in dired already, pop up a level and goto old directory's line.
In case the proper dired file line cannot be found, refresh the dired
buffer and try again." t nil)

(autoload (quote dired-jump-other-window) "dired" "\
Like \\[dired-jump] (dired-jump) but in other window." t nil)

Note that in recent releases of GNU Emacs 19 (i.e., 19.25 or later) the file `../lisp/loaddefs.el' of the Emacs distribution already contains the proper auto-loading for dired-jump so you need only put

(define-key global-map "\C-x\C-j" 'dired-jump)

before dired is loaded.

PREV Installation UP Installation NEXT Optional Installation File At Point