Let dired sort by name instead of extension

This commit is contained in:
Gerard Vermeulen 2024-06-23 21:09:45 +02:00
parent ee6bbfe8a4
commit ce78da22a1

View File

@ -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)