unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How to turn off auto indent in C++ mode?
@ 2008-06-05  9:38 Zhongxing Xu
  2008-06-06 16:26 ` Eli Zaretskii
  0 siblings, 1 reply; 6+ messages in thread
From: Zhongxing Xu @ 2008-06-05  9:38 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 395 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 495 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-06-13 12:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-05  9:38 How to turn off auto indent in C++ mode? Zhongxing Xu
2008-06-06 16:26 ` Eli Zaretskii
2008-06-07  2:46   ` Zhongxing Xu
2008-06-07  6:41     ` Eli Zaretskii
2008-06-07  9:42   ` Nikolaj Schumacher
2008-06-13 12:04     ` Zhongxing Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).