From 57df8519fdfbaa8cc814153393bf8ed4abca551d Mon Sep 17 00:00:00 2001 From: Martin Polden Date: Thu, 6 Feb 2020 22:31:52 +0100 Subject: Move dynamic configuration to :config Since this is calling an external process, it's faster to defer it until the package is loaded. --- lisp/init-dired.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lisp/init-dired.el') diff --git a/lisp/init-dired.el b/lisp/init-dired.el index a5c8880..2195402 100644 --- a/lisp/init-dired.el +++ b/lisp/init-dired.el @@ -7,11 +7,13 @@ ;; show human readable free space (setq directory-free-space-args "-h") + :bind ("M-" . dired-up-directory) + + :config ;; group directories first in dired if supported (when (eq 0 (call-process insert-directory-program nil nil nil "--group-directories-first")) (setq dired-listing-switches (concat dired-listing-switches - " --group-directories-first"))) - :bind ("M-" . dired-up-directory)) + " --group-directories-first")))) (provide 'init-dired) -- cgit v1.2.3