all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* how to disable C++ namespace indentation
@ 2010-01-27 20:53 chun
  2010-01-28  3:44 ` Nevo
  0 siblings, 1 reply; 4+ messages in thread
From: chun @ 2010-01-27 20:53 UTC (permalink / raw)
  To: help-gnu-emacs

In C++, I want to keep other indentations intact except for namespace
brackets, e.g.
namespace a {
struct A {
  int b;
};

void c {
  int d;
}
}

The above is what I want.  I tried (c-set-offset 'innamespace 0).
However it disables automatic indentation at every line when I hit
return.


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

end of thread, other threads:[~2010-01-28  4:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-27 20:53 how to disable C++ namespace indentation chun
2010-01-28  3:44 ` Nevo
2010-01-28  3:53   ` Nevo
     [not found]   ` <mailman.340.1264650842.14305.help-gnu-emacs@gnu.org>
2010-01-28  4:16     ` chun

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.