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: Sean G. McLaughlin
Subject: Re: indention in cc-mode not as expected
Date: Mon, 06 Oct 2008 23:08:47 -0700
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)

mfl <mofliwsb@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")


reply via email to

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