unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Xah Lee <xahlee@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: how can I add a file extension to a font lock mode
Date: Thu, 23 Jul 2009 18:11:33 -0700 (PDT)	[thread overview]
Message-ID: <63aaac04-1087-40d9-9448-8d0e377b1564@a26g2000yqn.googlegroups.com> (raw)
In-Reply-To: mailman.3063.1248395789.2239.help-gnu-emacs@gnu.org

On Jul 23, 5:36 pm, n179911 <n179...@gmail.com> wrote:
> Hi,
>
> Can you please tell me how can I add file extension '*.mm' to use
> c/c++ font lock mode?
>
> Thank you.

(add-to-list 'auto-mode-alist '("\\.mm\\'" . c-mode))

  Xah
∑ http://xahlee.org/

       reply	other threads:[~2009-07-24  1:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.3063.1248395789.2239.help-gnu-emacs@gnu.org>
2009-07-24  1:11 ` Xah Lee [this message]
2009-07-24  0:36 how can I add a file extension to a font lock mode n179911
2009-07-24  8:57 ` tomas

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=63aaac04-1087-40d9-9448-8d0e377b1564@a26g2000yqn.googlegroups.com \
    --to=xahlee@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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).