From 89a2d18e840e00ffaa949ed9401d41251ac45e31 Mon Sep 17 00:00:00 2001 From: JSDurand Date: Sat, 3 Jun 2023 21:23:26 +0800 Subject: dired: add -v to the listing switches * dired-conf.el (dired-listing-switches): Add '-v' here. It has the effect of sorting the file names by treating the numbers as version numbers, so that "10" is sorted after "2", as an example. --- dired-conf.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dired-conf.el b/dired-conf.el index 859875b..d801eb2 100644 --- a/dired-conf.el +++ b/dired-conf.el @@ -35,7 +35,7 @@ (set 'insert-directory-program "gls") (set 'dired-listing-switches - "-alh --dired --group-directories-first --time-style=long-iso") + "-halv --dired --group-directories-first --time-style=long-iso") (setq dired-dwim-target t) -- cgit v1.2.3-18-g5258