Examples of Omitting Various File Types
If you wish to avoid seeing RCS files and the
RCSdirectory, then useemacs-lisp(setq dired-omit-files (concat dired-omit-files "\\|^RCS$\\|,v$"))after loading
dired-x(see Installation). This assumesdired-omit-localphas its default value ofno-dirto make the^-anchored matches work. As a slower alternative, withdired-omit-localpset tonil, you can use/instead of^in the regexp.If you use
tib, the bibliography program for use with TeX and LaTeX, and you want to omit theINDEXand the*-t.texfiles, then useemacs-lisp(setq dired-omit-files (concat dired-omit-files "\\|^INDEX$\\|-t\\.tex$"))after loading
dired-x(see Installation).If you do not wish to see ‘
dot’ files (files starting with a.), then useemacs-lisp(setq dired-omit-files (concat dired-omit-files "\\|^\\..+$"))after loading
dired-x(see Installation). (Of course, a better way to achieve this particular goal is simply to omit ‘-a’ fromdired-listing-switches.)