From: mfl <mofliwsb@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: indention in cc-mode not as expected
Date: Tue, 7 Oct 2008 11:56:06 -0700 (PDT) [thread overview]
Message-ID: <8a973fac-3c0f-4c3a-8cf9-6e5561200187@r15g2000prd.googlegroups.com> (raw)
In-Reply-To: 87fxn97x8w.fsf@Pavilion.domain.invalid
On Oct 6, 11:08 pm, s...@Pavilion.domain.invalid (Sean G. McLaughlin)
wrote:
> mfl <mofli...@gmail.com> writes:
> > 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.
>
> You aren't taking into account the indenting *style*. The default is
> GNU-style, which is distinguished by the half-indented braces you are
> getting. The style you want looks most like BSD, which you can set with
>
> (setq c-default-style "bsd")
Thanks, changing to BSD style works.
prev parent reply other threads:[~2008-10-07 18:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-07 4:18 indention in cc-mode not as expected mfl
2008-10-07 6:08 ` Sean G. McLaughlin
2008-10-07 18:56 ` mfl [this message]
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=8a973fac-3c0f-4c3a-8cf9-6e5561200187@r15g2000prd.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).