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

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

Re: How to turn off auto indent in C++ mode?


From: Zhongxing Xu
Subject: Re: How to turn off auto indent in C++ mode?
Date: Fri, 13 Jun 2008 20:04:37 +0800

Thanks again!

On 6/7/08, Nikolaj Schumacher <n_schumacher@web.de> wrote:
Eli Zaretskii <eliz@gnu.org> wrote:


>> Date: Thu, 5 Jun 2008 17:38:13 +0800
>> From: "Zhongxing Xu" <mymlreader@gmail.com>
>>

>> I want such style:
>>
>> namespace foo {
>> class A {
>> };
>> }
>

> Does "C-c C-l" in the buffer where you edit C++ do what you want?


Instead of turning of electric indentation, you can also configure
indentation to do what you want.

In this case, customize the variable `c-offsets-alist' and set the value
`innamespace' to 0.

regards,

Nikolaj Schumacher




reply via email to

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