summary refs log tree commit diff
path: root/emacs
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-06-03 16:48:27 -0700
committerFranck Cuny <franck@fcuny.net>2022-06-03 16:48:27 -0700
commiteaa9764292b411d7043db0c786ae1dbeb53b32c0 (patch)
tree603cf0d9f89025a710adb96309221d69639345ab /emacs
parentfix(settings): run `exec-path-from-shell' when we're on a mac (diff)
downloademacs.d-eaa9764292b411d7043db0c786ae1dbeb53b32c0.tar.gz
feat(dired): use `ls-lisp' with `dired'
This gives me the possibility to use `--group-directories-first' which
is easier to read when browsing directories.

Change-Id: I01f303fd4b23b186945964c09a0f45c3e6c634a4
Diffstat (limited to 'emacs')
-rw-r--r--emacs/custom/my-dired.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/emacs/custom/my-dired.el b/emacs/custom/my-dired.el
index ee04d6e..a7544c6 100644
--- a/emacs/custom/my-dired.el
+++ b/emacs/custom/my-dired.el
@@ -1,11 +1,14 @@
-;;; my-dired.el --- Configure parts related to navigation
+;;; my-dired.el --- Configure `dired'
 
 ;;; Commentary:
 
 ;;; Code:
 
+(require 'ls-lisp)
+(setq ls-lisp-use-insert-directory-program nil)
+
 (customize-set-variable 'dired-dwim-target t)
-(customize-set-variable 'dired-listing-switches "-ahl")
+(customize-set-variable 'dired-listing-switches "--group-directories-first -al")
 (customize-set-variable 'dired-recursive-deletes 'always)
 (customize-set-variable 'dired-recursive-copies 'always)