From: mfl <mofliwsb@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: indention in cc-mode not as expected
Date: Mon, 6 Oct 2008 21:18:38 -0700 (PDT) [thread overview]
Message-ID: <40fbdde9-48c6-4c37-816b-b7e3b3f82d64@p31g2000prf.googlegroups.com> (raw)
I am trying to indent the following code using c-indent-region
void foo()
{
if(true)
{
foo1();
foo2();
}
}
I want to get the following:
void foo()
{
if(true)
{
foo1();
foo2();
}
}
However, c-indent-region keeps generating the following:
void foo()
{
if(true)
{
foo1();
foo2();
}
}
I tried different values for these options: c-tabs-always-indent, c-
insert-tab-function, but none of them worked.
Can someone please help me on this? or is there a function to do "tab-
to-the-left" for a region in emacs?
Thanks.
next reply other threads:[~2008-10-07 4:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-07 4:18 mfl [this message]
2008-10-07 6:08 ` indention in cc-mode not as expected Sean G. McLaughlin
2008-10-07 18:56 ` mfl
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=40fbdde9-48c6-4c37-816b-b7e3b3f82d64@p31g2000prf.googlegroups.com \
--to=mofliwsb@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/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).