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: Sat, 7 Jun 2008 10:46:29 +0800

Yes! You are amazing!

On Sat, Jun 7, 2008 at 12:26 AM, Eli Zaretskii <eliz@gnu.org> wrote:
> Date: Thu, 5 Jun 2008 17:38:13 +0800
> From: "Zhongxing Xu" <mymlreader@gmail.com>
>
> When I am using c++ mode to edit c++ sources, emacs always auto indent the
> class declarations inside a namespace. I don't want the auto indentation
> inside a namespace. How to turn off it?
>
> Code example:
> I want such style:
>
> namespace foo {
> class A {
> };
> }
>
> emacs forces to:
>
> namespace foo {
>   class A {
>   };
> }

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




reply via email to

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