From f276d3bda861c4cfca5e28d77f128874f67f4266 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 6 Oct 2019 11:07:33 -0700 Subject: [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) --- emacs.d/custom/fcuny-navigation.el | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'emacs.d/custom/fcuny-navigation.el') 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 -- cgit 1.4.1