summaryrefslogtreecommitdiffstats
path: root/lisp/init-dired.el
blob: a5c88800472c97388433b59c1f732072ce998356 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
(use-package dired
  :ensure nil ;; package is bundled with emacs
  :init
  ;; show human readable sizes in dired
  (setq dired-listing-switches "-alh")

  ;; show human readable free space
  (setq directory-free-space-args "-h")

  ;; 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)