From: "William Payne" <mikas493_no_spam@student.liu.se>
Subject: Re: Three questions
Date: Sat, 18 Sep 2004 01:27:25 +0200 [thread overview]
Message-ID: <cifrsc$l0f$1@news.island.liu.se> (raw)
In-Reply-To: 414B6DF3.8000002@yahoo.com
"Kevin Rodgers" <ihs_4664@yahoo.com> wrote in message
news:414B6DF3.8000002@yahoo.com...
> William Payne wrote:
> > "John Paul Wallington" <jpw@gnu.org> wrote in message
> > news:86mzzwz6so.fsf@vaio.shootybangbang.com...
> >>"William Payne" <mikas493_no_spam@student.liu.se> writes:
> >>>Second question: I have the following in my .emacs:
> >>>(setq auto-mode-alist
> >>> (cons '("\\(\\`\\|/\\)Makefile\\'" . makefile-mode)
> >>> auto-mode-alist))
> >>>
> >>>My old varaint would trigger Makefile mode (think I just had
> >>>Makefile$ or something similar), if the path contained the string
> >>>"Makefile". That wasn't so good. This varaint triggers makefile
> >>>mode only if the actual file name itself is called Makefile: that
> >>>is good. However, I want it to trigger make > file mode if the file
> >>>name (not the path!) contains the string Makefile, so Makefile.in
> >>>would trigger also. What do I need to change to get that?
> >>
> >>If you remove the above snippet from your .emacs file then Emacs
> >>should work as you expect by default. Does it?
> >
> > And if I comment out the lines regarding makefile-mode, I don't get
> > makefile mode for files named Makefile.txt for example, only if they
> > are named Makefile.
>
> To match an optional extension:
>
> (setq auto-mode-alist
> (cons '("\\(\\`\\|/\\)Makefile\\(\\.[^.]*\\)?\\'" . makefile-mode)
> auto-mode-alist))
>
> --
> Kevin Rodgers
>
Thanks Kevin, that works!
/ WP
prev parent reply other threads:[~2004-09-17 23:27 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-11 21:35 Three questions William Payne
2004-09-11 21:53 ` Drew Adams
2004-09-12 0:09 ` John Paul Wallington
2004-09-12 14:40 ` William Payne
2004-09-17 23:06 ` Kevin Rodgers
2004-09-17 23:27 ` William Payne [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='cifrsc$l0f$1@news.island.liu.se' \
--to=mikas493_no_spam@student.liu.se \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).