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

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

Re: setting makefile-mode for specific filenames


From: Kevin Dziulko
Subject: Re: setting makefile-mode for specific filenames
Date: Wed, 12 Jun 2002 10:10:41 -0400

Noel

According to the bible "Learning GNU Emacs", page 313 this should work:

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

But it doesn't! Not sure why at this point. Maybe the other makefile-mode rules in auto-mode-alist are messing it up. If you find a solution, let me know; I'd be interested.

Sorry I can't be more helpfull.

Kevin

From: Noel Yap <yap_noel@yahoo.com>
To: Kevin Dziulko <mrzippy21@hotmail.com>
Subject: Re: setting makefile-mode for specific filenames
Date: Tue, 11 Jun 2002 06:00:24 -0700 (PDT)

--- Kevin Dziulko <mrzippy21@hotmail.com> wrote:
> I'm not exactly sure what you need with an exact
> match.
> Putting in the:
> setq auto-mode-alist (cons '("mymakefile$" .
> makefile-mode)
> auto-mode-alist))
>
> should automaticlly put you in Makefile mode when
> opening files with names
> like mymakefile & also_mymakefile, but not with
> files like mymakefile_too.
> Are you trying to make it so it's only for files
> named mymakefile?

Yes.  In fact, I now find that I'd like to make a
match based on prefix as well.  IOW, I'd like
makefile-mode for files that start with "mymakefile".
For example, "mymakefile0" and "mymakefile1" but not
"also_mymakefile".

Thanks,
Noel


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


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.




reply via email to

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