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

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

Re: Ways to use Emacs when programming C++ with Visual Studio?


From: Óscar Fuentes
Subject: Re: Ways to use Emacs when programming C++ with Visual Studio?
Date: Tue, 02 Dec 2014 21:54:43 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Robert Thorpe <rt@robertthorpeconsulting.com> writes:

[snip]

> Something to watch out for here is that Emacs believes that .h files are
> C files not C++.  Microsoft don't use the .hpp file extension.  If you
> use VS a lot it's best to make .h files automatically choose C++ mode.
>
> I don't have any code for this unfortunately, I deleted it from my
> .emacs years ago when I stopped using VS.

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





reply via email to

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