unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* auto-newline before opening brace following "if","else" and "for"
@ 2005-10-19  6:19 ozark
  2005-10-23  9:36 ` auto-newline before opening brace following "if", "else" " Alan Mackenzie
  0 siblings, 1 reply; 2+ messages in thread
From: ozark @ 2005-10-19  6:19 UTC (permalink / raw)


I'm using C++-mode, with auto-newline turned on ("C++/ah Abbrev", it
shows).
c-set-style is set to gnu.
A newline is automatically inserted before and after an opening brace
if it follows a function name. However, when the brace is after an "if"
or an "else" or a "for", it places the brace on the same line and only
inserts a newline after it, i.e, it doesn't insert the newline before
the brace.

Is this default behaviour? How do I change it?

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

end of thread, other threads:[~2005-10-23  9:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-19  6:19 auto-newline before opening brace following "if","else" and "for" ozark
2005-10-23  9:36 ` auto-newline before opening brace following "if", "else" " Alan Mackenzie

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).