all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.