unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* [newbie] getting emacs to recognize the ".cpp" file extension
@ 2002-09-08  0:04 Brad Fonseca
  2002-09-08 20:06 ` Kai Großjohann
  0 siblings, 1 reply; 3+ messages in thread
From: Brad Fonseca @ 2002-09-08  0:04 UTC (permalink / raw)


Hello!

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.

Regards,

-- 
---
Brad Fonseca

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [newbie] getting emacs to recognize the ".cpp" file extension
  2002-09-08  0:04 [newbie] getting emacs to recognize the ".cpp" file extension Brad Fonseca
@ 2002-09-08 20:06 ` Kai Großjohann
  2002-09-09 13:33   ` Brad Fonseca
  0 siblings, 1 reply; 3+ messages in thread
From: Kai Großjohann @ 2002-09-08 20:06 UTC (permalink / raw)


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)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [newbie] getting emacs to recognize the ".cpp" file extension
  2002-09-08 20:06 ` Kai Großjohann
@ 2002-09-09 13:33   ` Brad Fonseca
  0 siblings, 0 replies; 3+ messages in thread
From: Brad Fonseca @ 2002-09-09 13:33 UTC (permalink / raw)


Kai Großjohann wrote:

> 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

Thanks so much for the help!  I was able, with some prompting from one of 
the list members over the weekend, to locate the appropriate section in the 
GNU Emacs manual.  With that knowledge, I was able to set my preference.  
The solution turned out to be exactly as above. :)

Thanks for the help!

-- 
---
Brad Fonseca

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-09-09 13:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-08  0:04 [newbie] getting emacs to recognize the ".cpp" file extension Brad Fonseca
2002-09-08 20:06 ` Kai Großjohann
2002-09-09 13:33   ` Brad Fonseca

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).