help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: indention in cc-mode not as expected


From: mfl
Subject: Re: indention in cc-mode not as expected
Date: Tue, 7 Oct 2008 11:56:06 -0700 (PDT)
User-agent: G2/1.0

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]