help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: get emacs to open files in c++ mode


From: Pascal J. Bourguignon
Subject: Re: get emacs to open files in c++ mode
Date: Mon, 18 May 2009 00:15:38 +0200
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/22.3 (darwin)

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__


reply via email to

[Prev in Thread] Current Thread [Next in Thread]