Function: dired-omit-mode
dired-omit-mode is an autoloaded, interactive and byte-compiled
function defined in dired-x.el.gz.
Signature
(dired-omit-mode &optional ARG)
Documentation
Toggle omission of uninteresting files in Dired (Dired-Omit mode).
This is a minor mode. If called interactively, toggle the Dired-Omit
mode mode. If the prefix argument is positive, enable the mode, and
if it is zero or negative, disable the mode.
If called from Lisp, toggle the mode if ARG is toggle. Enable the
mode if ARG is nil, omitted, or is a positive number. Disable the
mode if ARG is a negative number.
To check whether the minor mode is enabled in the current buffer,
evaluate dired-omit-mode(var)/dired-omit-mode(fun).
The mode's hook is called both when the mode is enabled and when it is disabled.
Dired-Omit mode is a buffer-local minor mode. When enabled in a
Dired buffer, Dired does not list files whose filenames match
regexp dired-omit-files, nor files ending with extensions in
dired-omit-extensions.
To enable omitting in every Dired buffer, you can put this in your init file:
(add-hook 'dired-mode-hook (lambda () (dired-omit-mode)))
See Info node (dired-x) Omitting Variables for more information.
Probably introduced at or before Emacs version 22.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/dired-x.el.gz
;;;###autoload
(define-minor-mode dired-omit-mode
"Toggle omission of uninteresting files in Dired (Dired-Omit mode).
Dired-Omit mode is a buffer-local minor mode. When enabled in a
Dired buffer, Dired does not list files whose filenames match
regexp `dired-omit-files', nor files ending with extensions in
`dired-omit-extensions'.
To enable omitting in every Dired buffer, you can put this in
your init file:
(add-hook \\='dired-mode-hook (lambda () (dired-omit-mode)))
See Info node `(dired-x) Omitting Variables' for more information."
:group 'dired-x
(if dired-omit-mode
;; This will mention how many lines were omitted:
(let ((dired-omit-size-limit nil)) (dired-omit-expunge))
(revert-buffer)))