unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann)
Subject: Re: [newbie] getting emacs to recognize the ".cpp" file extension
Date: Sun, 08 Sep 2002 22:06:56 +0200	[thread overview]
Message-ID: <vafvg5g455r.fsf@lucy.cs.uni-dortmund.de> (raw)
In-Reply-To: guwe9.16284$V_5.11247@news04.bloor.is.net.cable.rogers.com

Brad Fonseca <linuxbrad@rogers.com> writes:

> I was wondering if there is a way to get emacs to recognize the
> ".cpp" file extension as being a C++ file.  I'm guessing I'll be
> modifying my .emacs file somehow.

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

kai
-- 
A large number of young women don't trust men with beards.  (BFBS Radio)

  reply	other threads:[~2002-09-08 20:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-08  0:04 [newbie] getting emacs to recognize the ".cpp" file extension Brad Fonseca
2002-09-08 20:06 ` Kai Großjohann [this message]
2002-09-09 13:33   ` Brad Fonseca

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=vafvg5g455r.fsf@lucy.cs.uni-dortmund.de \
    --to=kai.grossjohann@cs.uni-dortmund.de \
    /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).