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

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

auto-mode-alist - recognize prefix instead of sufix?


From: Christian Herenz
Subject: auto-mode-alist - recognize prefix instead of sufix?
Date: Thu, 20 Mar 2008 00:07:36 +0100
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

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


reply via email to

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