Fix dired-x dired-jump autoload

This commit is contained in:
Allen Li 2016-03-25 18:14:53 -07:00 committed by Fabien Dubosson
parent abd9ef6892
commit 7ca64553ed
2 changed files with 8 additions and 1 deletions

View file

@ -13,6 +13,7 @@
'(
(bookmark :location built-in)
diminish
(dired-x :location built-in)
(electric-indent-mode :location built-in)
(ediff :location built-in)
(eldoc :location built-in)
@ -83,6 +84,13 @@
(when (eval-when-compile (version< "24.3.1" emacs-version))
(diminish 'subword-mode))))))
(defun spacemacs-base/init-dired-x ()
(autoload 'dired-jump "dired-x"
"Jump to Dired buffer corresponding to current buffer." t)
(autoload 'dired-jump-other-window "dired-x"
"Like \\[dired-jump] (dired-jump) but in other window." t))
(defun spacemacs-base/init-eldoc ()
(use-package eldoc
:defer t

View file

@ -1,4 +1,3 @@
(require 'dired-x)
(define-key evil-normal-state-map (kbd "-") 'dired-jump)
(add-hook 'dired-mode-hook 'vinegar/dired-setup)