From 1139eb704893623a5e611585e5c70a2f675da04a Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Thu, 9 Feb 2023 08:26:44 -0800 Subject: fix(dired): make the outpout of ls more readable I want the date of the files to be formatted as 'year-month-day time': this is easier to read and sort. To do this I needed to: - stop loading `ls-lisp': as I want to rely on the system's `ls' binary - specify the switches for `ls' The existing switches (`dired-listing-switches') where not taking effect because I was using `ls-lisp'. Change-Id: I3f3bc3abe864b60b12342713157e24f466c3aafa --- emacs/custom/my-dired.el | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'emacs') diff --git a/emacs/custom/my-dired.el b/emacs/custom/my-dired.el index a7544c6..92ab5b0 100644 --- a/emacs/custom/my-dired.el +++ b/emacs/custom/my-dired.el @@ -4,11 +4,8 @@ ;;; 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 "--group-directories-first -al") +(customize-set-variable 'dired-listing-switches "-ahl --time-style=long-iso --group-directories-first") (customize-set-variable 'dired-recursive-deletes 'always) (customize-set-variable 'dired-recursive-copies 'always) -- cgit 1.4.1