summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmin Bandali <bandali@gnu.org>2018-12-23 21:25:25 -0500
committerAmin Bandali <bandali@gnu.org>2018-12-24 08:54:51 -0500
commit3b8e0d032aa647a76da40c77bb1ad13cfac85ad2 (patch)
tree6b037ce8cd3e9c5bd0c22b0ed639b6b162b50298
parentd55e076797a02408b31d90ecfe53ea6e069c477e (diff)
downloadconfigs-3b8e0d032aa647a76da40c77bb1ad13cfac85ad2.tar.gz
configs-3b8e0d032aa647a76da40c77bb1ad13cfac85ad2.tar.xz
configs-3b8e0d032aa647a76da40c77bb1ad13cfac85ad2.zip
[emacs/dired] use the ls-lisp ls emulation & sort directories first
alternatively, one could add GNU ls’s --group-directories-first to dired-listing-switches, but the drawback of that would be that folder symlinks wouldn’t be grouped together with the rest of the directories Reported to the coreutils list: https://lists.gnu.org/archive/html/coreutils/2018-12/msg00017.html
Diffstat (limited to '')
-rw-r--r--init.org6
1 files changed, 5 insertions, 1 deletions
diff --git a/init.org b/init.org
index 049eaa8..1eb94d8 100644
--- a/init.org
+++ b/init.org
@@ -1071,10 +1071,14 @@ TODO: break this giant source block down into individual org sections.
(global-diff-hl-mode)
(add-hook 'magit-post-refresh-hook 'diff-hl-magit-post-refresh t))
+(use-package ls-lisp
+ :custom (ls-lisp-dirs-first t))
+
(use-package dired
:defer t
:config
- (setq dired-listing-switches "-alh")
+ (setq dired-listing-switches "-alh"
+ ls-lisp-use-insert-directory-program nil)
;; easily diff 2 marked files
;; https://oremacs.com/2017/03/18/dired-ediff/