You can use whatever ls
switches (command-line options) you want, for any particular Dired listing, by using a prefix argument with the Dired commands.
For example: C-u C-x d
. You are prompted for the ls
switches to use.
And you can set your own preference for the ls
switches to use by default each time, just by customizing user option dired-listing-switches
:
M-x customize-option RET dired-listing-switches RET
Then, each time you use Dired, you will get the kind of listing you prefer, and if you ever want to override your preference you just use a prefix argument (C-u
).
And whenever you are in Dired you can toggle whether to show the details (whatever they are, as determined by the ls
switches), using (
.
M-! ls
?dired+
package withdiredp-hide-details-initially-flag
set tot
.C-x d
instead ofC-x C-f
?