help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dired and dot files


From: Ehud Karni
Subject: Re: dired and dot files
Date: Thu, 16 Nov 2000 13:51:59 +0200

On Thu, 16 Nov 2000 10:41:17 GMT, Francesco Scaglioni <fgs@epulse.net> wrote:
> 
> Does anyone know a way of hiding dot files when in dired mode?
> Preferably as a default with a simple alt-x command to then show them
> when required.

Just takeout the "a" from `dired-listing-switches'.

A function to toggle it is:

(defun toggle-all-in-dired-listing-switches ()
  "Add or take the `a' in/out of `dired-listing-switches'"
       (interactive)
       (if (string-match "a" dired-listing-switches)
           (setq dired-listing-switches (concat
                   (substring dired-listing-switches 0 (match-beginning 0))
                   (substring dired-listing-switches (match-end 0))))
           (setq dired-listing-switches (concat dired-listing-switches "a"))))  
 

And assigning it to your preferred key:
(global-set-key "<key>" 'toggle-all-in-dired-listing-switches)

To check the key description do C-h C-k followed by the key combination
you want. For example: alt-x a the "<key>" is "\M-xa".

Ehud.


-- 
 @@@@@@ @@@ @@@@@@ @    @   Ehud Karni  Simon & Wiesel  Insurance agency
     @    @      @  @@  @   Tel: +972-3-6212-757    Fax: +972-3-6292-544
     @    @ @    @ @  @@    (USA)  Fax  and  voice  mail:  1-815-5509341
     @    @ @    @ @    @        Better     Safe     Than     Sorry
 http://www.simonwiesel.co.il    mailto:ehud@unix.simonwiesel.co.il



reply via email to

[Prev in Thread] Current Thread [Next in Thread]