From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Robert L Knighten Newsgroups: gmane.emacs.help Subject: Re: How to turn off conf-mode Date: Sun, 16 Dec 2007 00:33:34 -0800 Message-ID: <86ir2z82e9.fsf@zeus.knighten.org> References: <86wsrlivfu.fsf@zeus.knighten.org> <7gx7j.3438$1j1.1971@newsfe7-gui.ntli.net> <86d4tcbe74.fsf@zeus.knighten.org> <874pend2gq.fsf@gmx.de> <8663z3b2of.fsf@zeus.knighten.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1197794475 8165 80.91.229.12 (16 Dec 2007 08:41:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 16 Dec 2007 08:41:15 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Dec 16 09:41:27 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1J3p3r-00012J-1N for geh-help-gnu-emacs@m.gmane.org; Sun, 16 Dec 2007 09:41:23 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J3p3Y-0003V4-0K for geh-help-gnu-emacs@m.gmane.org; Sun, 16 Dec 2007 03:41:04 -0500 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!bigfeed.bellsouth.net!bigfeed3.bellsouth.net!news.bellsouth.net!uns-out.usenetserver.com!news.usenetserver.com!pc02.usenetserver.com!fe097.usenetserver.com.POSTED!8046b93a!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) Cancel-Lock: sha1:eG61QNkvwo3GQpSxBZd6F3br3KI= Original-Lines: 24 Original-X-Complaints-To: abuse@WWWSpace.NET Original-NNTP-Posting-Date: Sun, 16 Dec 2007 03:33:34 EST Original-Xref: shelby.stanford.edu gnu.emacs.help:154681 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:50109 Archived-At: Kevin Rodgers 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 RLK@knighten.org