all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* auto-mode-alist - recognize prefix instead of sufix?
@ 2008-03-19 23:07 Christian Herenz
  2008-03-19 23:46 ` Lennart Borgman (gmail)
  0 siblings, 1 reply; 6+ messages in thread
From: Christian Herenz @ 2008-03-19 23:07 UTC (permalink / raw)
  To: help-gnu-emacs

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-03-22 16:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-19 23:07 auto-mode-alist - recognize prefix instead of sufix? Christian Herenz
2008-03-19 23:46 ` Lennart Borgman (gmail)
2008-03-21  2:18   ` Kevin Rodgers
     [not found]   ` <mailman.9283.1206065927.18990.help-gnu-emacs@gnu.org>
2008-03-22 15:49     ` Christian Herenz
2008-03-22 15:57       ` Le TeXnicien de Surface
2008-03-22 16:27         ` Christian Herenz

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.