diff options
author | Franck Cuny <fcuny@twitter.com> | 2019-10-06 11:07:33 -0700 |
---|---|---|
committer | Franck Cuny <fcuny@twitter.com> | 2019-10-06 11:07:33 -0700 |
commit | f276d3bda861c4cfca5e28d77f128874f67f4266 (patch) | |
tree | b9582ffe752b9f2aba3314fe8e7fbb98a064723d /emacs | |
parent | [emacs] clean up go's configuration. (diff) | |
download | emacs.d-f276d3bda861c4cfca5e28d77f128874f67f4266.tar.gz |
[emasc] use `ls-lisp` for dired.
Use emacs implementation of `ls`, which allows us to group files by type (only GNU's `ls` does that, not the one shipped by MacOS)
Diffstat (limited to '')
-rw-r--r-- | emacs.d/custom/fcuny-navigation.el | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/emacs.d/custom/fcuny-navigation.el b/emacs.d/custom/fcuny-navigation.el index f418a1a..c86e53f 100644 --- a/emacs.d/custom/fcuny-navigation.el +++ b/emacs.d/custom/fcuny-navigation.el @@ -27,18 +27,23 @@ (counsel-find-file-ignore-regexp "\\.DS_Store\\|\\.localized\\'") (counsel-find-file-at-point t)) +(use-package ls-lisp + :ensure nil + :custom + (ls-lisp-use-insert-directory-program nil) + (ls-lisp-dirs-first t)) + (use-package dired :defer t + :hook (dired-mode . dired-hide-details-mode) :bind (("C-x C-d" . dired) ("C-x C-j" . dired-jump)) + :init (setq-default dired-dwim-target t) (setq-default dired-listing-switches "-alh") (setq dired-recursive-deletes 'always) - (setq dired-recursive-copies 'always) - - (let ((gls (executable-find "/bin/ls"))) - (when gls (setq insert-directory-program gls)))) + (setq dired-recursive-copies 'always)) (use-package dired-x :ensure nil |