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: Robert L Knighten
Subject: Re: How to turn off conf-mode
Date: Sun, 16 Dec 2007 00:33:34 -0800
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

Kevin Rodgers <address@hidden> writes:
> Robert L Knighten wrote:
>> Thank you for your comments, they certainly make the issue clearer, but where
>> I am still confused about how to change this in a useful way.  My problem
>> isn't just what regular expression to use but rather that the one at issue is
>> part of the defvar of auto-mode-alist that is created when files.el is an
>> official part of emacs.  Of course I can change files.el, but I certainly do
>> not want to do that.  And of course I can just redefine auto-mode-alist
>> changing only the troublesome part, but again I hope there is a less extreme
>> solution.
>
> Put this in your .emacs file:
>
> (add-to-list 'auto-mode-alist "\\(/\\|\\`\\)cf\\.out\\'" 'text-mode)

Thank you!  That didn't actually work, but it woke me up and I realized that
by adding 
("[/.]c\\(?:on\\)?f\\(?:i?g\\)?\\(?:\\.[a-zA-Z0-9._-]+\\)?\\'" 'text-mode)
to the beginning of auto-mode-alist I could prevent the troublesome behavior.
Not the nicest solution, but it will do for now.

-- 
Robert L. Knighten
address@hidden


reply via email to

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