From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Christian Herenz Newsgroups: gmane.emacs.help Subject: auto-mode-alist - recognize prefix instead of sufix? Date: Thu, 20 Mar 2008 00:07:36 +0100 Organization: A noiseless patient Spider Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1205970049 25593 80.91.229.12 (19 Mar 2008 23:40:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 19 Mar 2008 23:40:49 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 20 00:41:18 2008 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 1Jc7uC-0008MK-LU for geh-help-gnu-emacs@m.gmane.org; Thu, 20 Mar 2008 00:41:12 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jc7tc-0004o5-Dv for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Mar 2008 19:40:36 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!feeder.news-service.com!feeder.news-service.com!news.motzarella.org!motzarella.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 14 Original-X-Trace: feeder.motzarella.org U2FsdGVkX19MMbbgV7bxbDQ3GD0J0lIuClcwf0ehUkMTLLSsS13mIWBICskazPfqUEl7gUkiUxpzTTSc/BjWJ1jt/d6sq/oCwb7OcvXL2Dtwnxp29wEa8T+8DOCuyQsenxV0qnxxL7w= Original-X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers Original-NNTP-Posting-Date: Wed, 19 Mar 2008 23:07:37 +0000 (UTC) X-Auth-Sender: U2FsdGVkX1/dbcNjnumdWatEwZCcOBaYCgq0S6a120Q= Cancel-Lock: sha1:e9wyvFYK0vAmVY7hNJ2kX0Z3nvA= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.11) Gecko/20071128 SUSE/1.1.7-3.4 SeaMonkey/1.1.7 Mnenhy/0.7.5.0 Original-Xref: shelby.stanford.edu gnu.emacs.help:157182 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:52550 Archived-At: Hi, is it possible to use a major-mode on files with a certain prefix? I know that I can do something like this: (setq auto-mode-alist (cons '("\\.html$" . html-helper-mode)auto-mode-alist)) But what about opening files like foo.comments, foo.examples and so on in a special mode? Thanks in advance... Christian