all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "seguso" <address@in.the.signature>
Subject: Re: Indenting in emacs
Date: Wed, 30 Apr 2003 09:47:41 GMT	[thread overview]
Message-ID: <pan.2003.04.30.09.47.50.299387@in.the.signature> (raw)
In-Reply-To: pan.2003.04.30.08.22.26.937788@in.the.signature

On Wed, 30 Apr 2003 08:26:58 +0000, seguso wrote:

> Hello,
> 
> While programming in C++, I am trying to set the 
> indentation style as follows:
> 
> func()
> {
>    for (;;)
>    {
>       x = 5;
>    } 
> }


Add the following in .emacs

;; personalized indentation c++ and c#
(require 'cc-mode) 
(c-set-offset 'substatement-open 0)
(c-set-offset 'block-open 0)
(c-set-offset 'statement-cont 0)
(c-set-offset 'access-label '*)

-- 
Best Regards,
Maurizio Colucci
Please remove the uppercase letters "S,P,A,M":
seSgPuAsMo.forever@tin.it

  reply	other threads:[~2003-04-30  9:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-30  8:26 Indenting in emacs seguso
2003-04-30  9:47 ` seguso [this message]
2003-04-30 12:28 ` Mark Mynsted

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=pan.2003.04.30.09.47.50.299387@in.the.signature \
    --to=address@in.the.signature \
    /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.