diff options
author | Martin Polden <mpolden@mpolden.no> | 2017-06-29 11:16:03 +0200 |
---|---|---|
committer | Martin Polden <mpolden@mpolden.no> | 2017-06-29 11:16:03 +0200 |
commit | 678970ea5d9858b4aab3cfe3e03508586157f12c (patch) | |
tree | 9163f04a1408913a38fe694dd6b09b269cd8ea8d /lisp/init-dired.el | |
parent | b00288cd680439cfac8cd1a558ee02f391171d93 (diff) |
Move dired config to separate file
Diffstat (limited to 'lisp/init-dired.el')
-rw-r--r-- | lisp/init-dired.el | 13 |
1 files changed, 13 insertions, 0 deletions
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) |