From mboxrd@z Thu Jan 1 00:00:00 1970
Path: main.gmane.org!not-for-mail
From: "seguso"
Newsgroups: gmane.emacs.help
Subject: Re: Indenting in emacs
Date: Wed, 30 Apr 2003 09:47:41 GMT
Organization: TIN
Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org
Message-ID:
References:
NNTP-Posting-Host: main.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
X-Trace: main.gmane.org 1051696287 31744 80.91.224.249 (30 Apr 2003 09:51:27 GMT)
X-Complaints-To: usenet@main.gmane.org
NNTP-Posting-Date: Wed, 30 Apr 2003 09:51:27 +0000 (UTC)
Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 30 11:51:26 2003
Return-path:
Original-Received: from monty-python.gnu.org ([199.232.76.173])
by main.gmane.org with esmtp (Exim 3.35 #1 (Debian))
id 19AoFK-0008Fq-00
for ; Wed, 30 Apr 2003 11:51:26 +0200
Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org)
by monty-python.gnu.org with esmtp (Exim 4.10.13)
id 19AoEa-0000OZ-05
for gnu-help-gnu-emacs@m.gmane.org; Wed, 30 Apr 2003 05:50:40 -0400
Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!news.telebyte.nl!newsfeeder.edisontel.com!news-out.tin.it!news-in.tin.it!news1.tin.it.POSTED!not-for-mail
User-Agent: Pan/0.13.0 (The whole remains beautiful (Debian GNU/Linux))
Original-Newsgroups: gnu.emacs.help
Original-Lines: 31
Original-NNTP-Posting-Host: 80.181.69.34
Original-X-Complaints-To: newsmaster@tin.it
Original-X-Trace: news1.tin.it 1051696061 80.181.69.34 (Wed, 30 Apr 2003 11:47:41 MET
DST)
Original-NNTP-Posting-Date: Wed, 30 Apr 2003 11:47:41 MET DST
Original-Xref: shelby.stanford.edu gnu.emacs.help:112556
Original-To: help-gnu-emacs@gnu.org
X-BeenThere: help-gnu-emacs@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Users list for the GNU Emacs text editor
List-Help:
List-Post:
List-Subscribe: ,
List-Archive:
List-Unsubscribe: ,
Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org
Xref: main.gmane.org gmane.emacs.help:9052
X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:9052
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