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: Eli Zaretskii
Subject: Re: How to turn off auto indent in C++ mode?
Date: Fri, 06 Jun 2008 19:26:55 +0300

> Date: Thu, 5 Jun 2008 17:38:13 +0800
> From: "Zhongxing Xu" <address@hidden>
> 
> 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]