summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2023-02-09 08:26:44 -0800
committerFranck Cuny <franck@fcuny.net>2023-02-09 08:26:44 -0800
commit1139eb704893623a5e611585e5c70a2f675da04a (patch)
tree916c13cc5af0db66263e668cdb302b04a01890df
parentfix(go): format the buffer (diff)
downloademacs.d-1139eb704893623a5e611585e5c70a2f675da04a.tar.gz
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
-rw-r--r--emacs/custom/my-dired.el5
1 files changed, 1 insertions, 4 deletions
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)