From: Tassilo Horn <tassilo@member.fsf.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Showing and hiding files in Dired
Date: Fri, 19 Sep 2008 10:24:02 +0200 [thread overview]
Message-ID: <87d4j05ysd.fsf@thinkpad.tsdh.de> (raw)
In-Reply-To: BLU105-W16D0294A478915BFA784E3DA4F0@phx.gbl
Corey Foote <coreyfoote@hotmail.com> writes:
Hi Corey,
> Is there away to filter the directory list provided by Dired by
> showing or hiding all files which match a regular expression?
Sure, it's emacs. You can use `dired-omit-mode' which in in
dired-x.el. Here's my setup:
--8<---------------cut here---------------start------------->8---
(require 'dired-x)
(setq dired-omit-files
(rx (or (seq bol (? ".") "#") ;; emacs autosave files
(seq bol "." (not (any "."))) ;; dot-files
(seq "~" eol) ;; backup-files
(seq bol "CVS" eol) ;; CVS dirs
)))
(setq dired-omit-extensions
(append dired-latex-unclean-extensions
dired-bibtex-unclean-extensions
dired-texinfo-unclean-extensions))
(add-hook 'dired-mode-hook (lambda () (dired-omit-mode 1)))
--8<---------------cut here---------------end--------------->8---
With `M-o' you cat toggle the mode.
Hope that helps,
Tassilo
next prev parent reply other threads:[~2008-09-19 8:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-18 21:47 Showing and hiding files in Dired Corey Foote
2008-09-18 22:40 ` Peter Dyballa
2008-09-18 22:42 ` Drew Adams
2008-09-19 8:24 ` Tassilo Horn [this message]
[not found] <mailman.19503.1221774483.18990.help-gnu-emacs@gnu.org>
2008-09-18 22:10 ` Andreas Politz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87d4j05ysd.fsf@thinkpad.tsdh.de \
--to=tassilo@member.fsf.org \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).