summaryrefslogtreecommitdiff
path: root/lisp/dired-x.el
diff options
context:
space:
mode:
authorGerd Moellmann <gerd@gnu.org>2001-10-29 11:39:24 +0000
committerGerd Moellmann <gerd@gnu.org>2001-10-29 11:39:24 +0000
commitab606888d5599f15d6a99b507d1d37e7b21bff79 (patch)
treedda789cf1626c9d84188af9c13cc8f22296b7e5a /lisp/dired-x.el
parentea42193aa27f5a2ebb1c02e30e1dfec1f395625c (diff)
downloademacs-ab606888d5599f15d6a99b507d1d37e7b21bff79.tar.gz
(dired-omit-startup): Show ``Omit'' only in Dired
buffers.
Diffstat (limited to 'lisp/dired-x.el')
-rw-r--r--lisp/dired-x.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/dired-x.el b/lisp/dired-x.el
index 9db2974d6ab..a68772491bb 100644
--- a/lisp/dired-x.el
+++ b/lisp/dired-x.el
@@ -510,7 +510,10 @@ Should never be used as marker by the user or other packages.")
(defun dired-omit-startup ()
(or (assq 'dired-omit-files-p minor-mode-alist)
(setq minor-mode-alist
- (append '((dired-omit-files-p " Omit")) minor-mode-alist))))
+ (append '((dired-omit-files-p
+ (:eval (if (eq major-mode 'dired-mode)
+ " Omit" ""))))
+ minor-mode-alist))))
(defun dired-omit-toggle (&optional flag)
"Toggle omitting files matching `dired-omit-files' and `dired-omit-extensions'.