From 678970ea5d9858b4aab3cfe3e03508586157f12c Mon Sep 17 00:00:00 2001 From: Martin Polden Date: Thu, 29 Jun 2017 11:16:03 +0200 Subject: Move dired config to separate file --- lisp/init-dired.el | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 lisp/init-dired.el (limited to 'lisp/init-dired.el') diff --git a/lisp/init-dired.el b/lisp/init-dired.el new file mode 100644 index 0000000..01372c7 --- /dev/null +++ b/lisp/init-dired.el @@ -0,0 +1,13 @@ +(use-package dired + :ensure nil ;; package is bundled with emacs + :init + ;; show human readable sizes in dired + (setq dired-listing-switches "-alh") + + ;; 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")))) + +(provide 'init-dired) -- cgit v1.2.3