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

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

setting makefile-mode for specific filenames


From: Noel Yap
Subject: setting makefile-mode for specific filenames
Date: Tue, 11 Jun 2002 05:03:09 -0700 (PDT)

I would like emacs to use makefile-mode for specific
filenames (eg "mymakefile").  I've been able to do it
for filenames ending with "mymakefile" with:

  (setq auto-mode-alist (cons '("mymakefile$" .
makefile-mode) auto-mode-alist))
but I haven't been able to get an exact match with:

  (setq auto-mode-alist (cons '("^mymakefile$" .
makefile-mode) auto-mode-alist))

Does anyone have any idea why this doesn't work and
what I should do?

Thanks,
Noel

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com



reply via email to

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