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

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

Re: How to turn off conf-mode


From: Peter Dyballa
Subject: Re: How to turn off conf-mode
Date: Wed, 12 Dec 2007 23:14:33 +0100


Am 12.12.2007 um 22:31 schrieb Sven Joachim:

        (add-to-list 'auto-mode-alist
("[/.]c\\(?:on\\)?f\\(?:i?g\\)\\'". conf-mode))

That would be a good idea.

No, not really! Since you explained that *file names* starting with cf etc. are triggering conf-mode, the reg-exp to add to auto-mode- alist should not start with with the choice of either / or . ... Then, I think, another reg-exp should be added, describing just conf* files, to still be able to view/edit standard configure, configure.in, config.log, config.sub, config.guess, and config.status files. And then, of course, the \\(?:\\.[a-zA-Z0-9._-]+\\) part could be kept.

--
Mit friedvollen Grüßen

  Pete
                      ~  o
                       ~_\\_/\
                      ~  O   O






reply via email to

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