summaryrefslogtreecommitdiffstats
path: root/lisp/init-dired.el
blob: 03fdb83f3ed30fefee9821780850f3759bdfbf06 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
(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")))
  :bind ("M-<up>" . dired-up-directory))

(provide 'init-dired)