[Top][All Lists]

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

Re: [h-e-w] Ignoring certain directories in command-completion

From: Jason Rumney
Subject: Re: [h-e-w] Ignoring certain directories in command-completion
Date: 11 Oct 2001 21:28:29 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.107

"Jeff Finger" <address@hidden> writes:

> I would like for minibuffer completion of file names to ignore all my CVS
> directories. Is there an easy way to make this happen? I tried the obvious
>    (setq completion-ignored-extensions
>         (append (list "CVS" ...) completion-ignored-extensions))


(add-to-list 'completion-ignored-extensions "CVS/")

Since the match is applied to the end of the filename (I assume, given
the name of the variable) the trailing slash will be important.

I have:

completion-ignored-extensions's value is 

("CVS/" ".o" "~" ".bin" ".bak" ".obj" ".map" ".a" ".ln" ".blg" ".bbl"
".elc" ".lof" ".glo" ".idx" ".lot" ".dvi" ".fmt" ".tfm" ".pdf"
".class" ".fas" ".lib" ".x86f" ".sparcf" ".lo" ".la" ".toc" ".log"
".aux" ".cp" ".fn" ".ky" ".pg" ".tp" ".vr" ".cps" ".fns" ".kys" ".pgs"
".tps" ".vrs")

This is the default value for Emacs 21 BTW.

Jason Rumney

reply via email to

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