From: "ozark" <shreevatsa@gmail.com>
Subject: auto-newline before opening brace following "if","else" and "for"
Date: 18 Oct 2005 23:19:12 -0700 [thread overview]
Message-ID: <1129702752.669786.195580@o13g2000cwo.googlegroups.com> (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?
next reply other threads:[~2005-10-19 6:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-19 6:19 ozark [this message]
2005-10-23 9:36 ` auto-newline before opening brace following "if", "else" and "for" Alan Mackenzie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1129702752.669786.195580@o13g2000cwo.googlegroups.com \
--to=shreevatsa@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).