diff options
author | Drew Adams <drew.adams@oracle.com> | 2020-09-30 17:59:59 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2020-09-30 17:59:59 +0200 |
commit | cc3e369ab00524b63aa407018be91a2a1a0cc052 (patch) | |
tree | 5721d7321f51c11921a378ea03f6a90c3988e21d /doc/emacs | |
parent | 0bd221b29fa29ebcd4b168d9abc67745ef5f85c2 (diff) | |
download | emacs-cc3e369ab00524b63aa407018be91a2a1a0cc052.tar.gz emacs-cc3e369ab00524b63aa407018be91a2a1a0cc052.tar.bz2 emacs-cc3e369ab00524b63aa407018be91a2a1a0cc052.zip |
Allow controlling the Dired switches shown in the mode line
* doc/emacs/dired.texi (Dired Enter): Document it (bug#41250).
* lisp/dired.el (dired-switches-in-mode-line): New variable (bug#41250).
(dired-sort-set-mode-line): Use it.
Diffstat (limited to 'doc/emacs')
-rw-r--r-- | doc/emacs/dired.texi | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/emacs/dired.texi b/doc/emacs/dired.texi index 24fd02aac1a..22fec134baf 100644 --- a/doc/emacs/dired.texi +++ b/doc/emacs/dired.texi @@ -129,6 +129,17 @@ options (that is, single characters) requiring no arguments, and long options (starting with @samp{--}) whose arguments are specified with @samp{=}. +@vindex dired-switches-in-mode-line + Dired will display an indication of what the @command{ls} switches +are in the mode line. By default, Dired will try to determine whether +the switches indicate sorting by name or date, and say so in the mode +line. If the @code{dired-switches-in-mode-line} variable is +@code{as-is}, the switches will be shown verbatim. If this variable +in an integer, the switch display will be truncated to that length. +This variable can also be a function, which will be passed +@code{dired-actual-switches} as the only parameter and should return a +string. + @vindex dired-use-ls-dired If your @command{ls} program supports the @samp{--dired} option, Dired automatically passes it that option; this causes @command{ls} to |