unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* get emacs to open files in c++ mode
@ 2009-05-17 20:26 luca.pamparana
  2009-05-17 22:15 ` Pascal J. Bourguignon
  0 siblings, 1 reply; 2+ messages in thread
From: luca.pamparana @ 2009-05-17 20:26 UTC (permalink / raw)
  To: help-gnu-emacs

Hello all,

I have my emacs setup so that the default mode is the c++ mode.
However, whenever I open a header file (.h) it opens it in C mode. How
can I set up my .emacs file so that the header files would open in c++
mode as well.

Many thanks,

Luca


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

* Re: get emacs to open files in c++ mode
  2009-05-17 20:26 get emacs to open files in c++ mode luca.pamparana
@ 2009-05-17 22:15 ` Pascal J. Bourguignon
  0 siblings, 0 replies; 2+ messages in thread
From: Pascal J. Bourguignon @ 2009-05-17 22:15 UTC (permalink / raw)
  To: help-gnu-emacs

luca.pamparana@gmail.com writes:

> Hello all,
>
> I have my emacs setup so that the default mode is the c++ mode.
> However, whenever I open a header file (.h) it opens it in C mode. How
> can I set up my .emacs file so that the header files would open in c++
> mode as well.

(push '("\\.h\\'" . c++-mode)  auto-mode-alist)

-- 
__Pascal Bourguignon__


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

end of thread, other threads:[~2009-05-17 22:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-17 20:26 get emacs to open files in c++ mode luca.pamparana
2009-05-17 22:15 ` Pascal J. Bourguignon

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