all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: sgm@Pavilion.domain.invalid (Sean G. McLaughlin)
To: help-gnu-emacs@gnu.org
Subject: Re: indention in cc-mode not as expected
Date: Mon, 06 Oct 2008 23:08:47 -0700	[thread overview]
Message-ID: <87fxn97x8w.fsf@Pavilion.domain.invalid> (raw)
In-Reply-To: 40fbdde9-48c6-4c37-816b-b7e3b3f82d64@p31g2000prf.googlegroups.com

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	other threads:[~2008-10-07  6:08 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 [this message]
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fxn97x8w.fsf@Pavilion.domain.invalid \
    --to=sgm@pavilion.domain.invalid \
    --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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.