From f651969d12c915f24ede4a575a340569f2d07595 Mon Sep 17 00:00:00 2001 From: Fabien Dubosson Date: Fri, 8 Apr 2016 00:32:06 +0200 Subject: [PATCH] Use `use-package` to define autoload of dired-x This also add autoload for `dired-omit-mode` which fixes #5705 --- layers/+distribution/spacemacs-base/packages.el | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/layers/+distribution/spacemacs-base/packages.el b/layers/+distribution/spacemacs-base/packages.el index 605baf364..432529dcb 100644 --- a/layers/+distribution/spacemacs-base/packages.el +++ b/layers/+distribution/spacemacs-base/packages.el @@ -95,11 +95,10 @@ "jD" 'dired-jump-other-window)) (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)) + (use-package dired-x + :commands (dired-jump + dired-jump-other-window + dired-omit-mode))) (defun spacemacs-base/init-eldoc () (use-package eldoc