2009-03-15

HowTo: Hide listings of hidden directories in Emacs 'dired' mode.

In order to not show hidden file names in the Emacs dired directory listings, take the following steps:

  1. Use the Meta–x to enter a command.
  2. At the M–x prompt, type customize–groupand hit <Enter>
  3. At the ’Customize group (default emacs):’ prompt type ’dired
  4. In the Emacs customization buffer for group Dired, find the option setting titled List Directory Verbose Switches [option variable name is list-directory-verbose-switches]
  5. Remove the a from the string value provided to list-directory-verbose-switches
  6. Save the changes.

Here is the Lisp code to set this option:

(if
    (eq system-type 'vax-vms)
    "/PROTECTION/SIZE/DATE/OWNER/WIDTH=(OWNER:10)" "-l")

The Lisp code can be placed in the .emacs file manually, if that method of editing and setting the Emacs environment options is preferred.