emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is it a mistake to define dired-omit-mode as a minor mode?


From: Juri Linkov
Subject: Re: Is it a mistake to define dired-omit-mode as a minor mode?
Date: Wed, 24 Mar 2010 11:31:33 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu)

>> For what it does, it seems dired-omit-mode should just be an
>> interactive function. The name is so confusing that some people are
>> suggesting (dired-omit-mode 1) to enable it, which actually does
>> almost nothing if you put it in your .emacs file.
>
> The docs are pretty clear on that:
>
> dired-omit-mode is an interactive compiled Lisp function in `dired-
> x.el'.
>
> (dired-omit-mode &optional ARG)
>
> Toggle Dired-Omit mode.
> With numeric ARG, enable Dired-Omit mode if ARG is positive, disable
> otherwise.  Enabling and disabling is buffer-local.
>             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> If enabled, "uninteresting" files are not listed.
> Uninteresting files are those whose filenames match regexp `dired-omit-
> files', plus those ending with extensions in `dired-omit-extensions'.

Maybe the docstring should say what is the preferred way to enable it
in .emacs?  E.g. (add-hook 'dired-mode-hook (lambda () (dired-omit-mode 1)))

-- 
Juri Linkov
http://www.jurta.org/emacs/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]