From ce78da22a179c707ab5eb9ac8a527feeb7f7b75f Mon Sep 17 00:00:00 2001 From: Gerard Vermeulen Date: Sun, 23 Jun 2024 21:09:45 +0200 Subject: [PATCH] Let dired sort by name instead of extension --- README.org | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/README.org b/README.org index 4b7aebb..c63b793 100644 --- a/README.org +++ b/README.org @@ -820,9 +820,9 @@ by means of the facilities of [[info:emacs#Dired][dired (info)]] as follows: 6. Switch to the =org-mode= buffer and use {{{kbd(C-c C-l)}}} to insert the =org-link= into the buffer. -Listing [[lst:setup-dired]] makes the directory editor sort entries alphabetically -by extension after grouping the directories and adds a key binding to -=dired-mode-map= to open files with the [[https://en.wikipedia.org/wiki/Eww_(web_browser)][Emacs Web Wowser]]. +Listing [[lst:setup-dired]] makes the directory editor group the directories in +front of the files and sort each group alphabetically. It also adds a key +binding to =dired-mode-map= to open files with the [[https://en.wikipedia.org/wiki/Eww_(web_browser)][Emacs Web Wowser]]. #+caption[Setup =dired=]: #+caption: Setup =dired=. @@ -834,10 +834,9 @@ by extension after grouping the directories and adds a key binding to ;; |--------+----------------------------------------| ;; | -a | also list hidden entries | ;; | -l | use a long listing format | - ;; | -X | sort alphabetically by entry extension | ;; | -G | skip long listing format group names | ;; | -1 | list one entry per line | - dired-listing-switches "-alGX1 --group-directories-first" + dired-listing-switches "-alG1 --group-directories-first" dired-recursive-copies 'always dired-recursive-deletes 'always)