changeset 40438:3b2e61109dc2

(dired-omit-startup): Show ``Omit'' only in Dired buffers.
author Gerd Moellmann <gerd@gnu.org>
date Mon, 29 Oct 2001 11:39:24 +0000
parents 1ee61682a51f
children 58a55094ec0d
files lisp/dired-x.el
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/dired-x.el	Mon Oct 29 11:18:51 2001 +0000
+++ b/lisp/dired-x.el	Mon Oct 29 11:39:24 2001 +0000
@@ -510,7 +510,10 @@
 (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'.