[Top][All Lists]

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

Re: c++-mode vs. c-mode

From: J. David Boyd
Subject: Re: c++-mode vs. c-mode
Date: Tue, 09 Aug 2005 09:47:31 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

"Rancier, Jeff" <address@hidden> writes:

> Is there a simple way to have c++-mode behave (or inherit) my customizations
> for c-mode?

If you really mean that you don't care about c++-mode per-se, but would be
happy with working on c++ code in c-mode, one way would be to add a construct
into your .emacs like this:

(setq auto-mode-alist
      (append '(("\\.C$"  . c-mode)
                ("\\.cc$" . c-mode)
                ("\\.hh$" . c-mode)
                ("\\.c$"  . c-mode)
                ("\\.h$"  . c-mode))

to force c++ code to be edited in c-mode.

Dave in Largo, FL

reply via email to

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