From eaa9764292b411d7043db0c786ae1dbeb53b32c0 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Fri, 3 Jun 2022 16:48:27 -0700 Subject: 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 --- emacs/custom/my-dired.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'emacs/custom') 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) -- cgit 1.4.1