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

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

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


From: Zhongxing Xu
Subject: How to turn off auto indent in C++ mode?
Date: Thu, 5 Jun 2008 17:38:13 +0800

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 {
  };
}

I have to delete the spaces in front of "class A" manually. 

Greetings,

Zhongxing Xu

reply via email to

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