From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Zhongxing Xu" Newsgroups: gmane.emacs.help Subject: Re: How to turn off auto indent in C++ mode? Date: Fri, 13 Jun 2008 20:04:37 +0800 Message-ID: <4619993f0806130504g5723a78cqb69a7e8d8d21c5bf@mail.gmail.com> References: <4619993f0806050238r1d92d12bk276eebc9a71656e8@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1970_9556840.1213358677659" X-Trace: ger.gmane.org 1213359824 5560 80.91.229.12 (13 Jun 2008 12:23:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 13 Jun 2008 12:23:44 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Nikolaj Schumacher" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 13 14:24:28 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1K78KP-0004ps-7E for geh-help-gnu-emacs@m.gmane.org; Fri, 13 Jun 2008 14:24:25 +0200 Original-Received: from localhost ([127.0.0.1]:40872 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K78Jb-0006sa-8K for geh-help-gnu-emacs@m.gmane.org; Fri, 13 Jun 2008 08:23:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K781I-0004sh-H1 for help-gnu-emacs@gnu.org; Fri, 13 Jun 2008 08:04:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K781I-0004sV-0i for help-gnu-emacs@gnu.org; Fri, 13 Jun 2008 08:04:40 -0400 Original-Received: from [199.232.76.173] (port=52801 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K781H-0004sS-OQ for help-gnu-emacs@gnu.org; Fri, 13 Jun 2008 08:04:39 -0400 Original-Received: from an-out-0708.google.com ([209.85.132.240]:7454) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K781H-00030H-MD for help-gnu-emacs@gnu.org; Fri, 13 Jun 2008 08:04:39 -0400 Original-Received: by an-out-0708.google.com with SMTP id c38so781861ana.84 for ; Fri, 13 Jun 2008 05:04:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=tlJAM/p5RyYA2Sp8zrpnw8NMBlKR/Ga8WZBb6Z4dejc=; b=aZu/BQFEaQbzi4bURv4k5DFJulmUdCdrwn/QnijpglAqFtamfuCCJag7+UGZZ6wQkZ oAeHu4g09+n/SQ6ne2l6pkIoNzbE3xvYqnohLkeb6VWEdnX3STxwCcurU7DNd1OHQOUl yKARM0rfa9KAF5WUFYcMmdz0Q0PspknfxcEsc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=xCPqv66S1WA0GT8Q1am6Q2G+rVv1PaE0EnenfmC/yMexkpXw8mz4E9HVTFOZjdXVsU AdmuKJK9q9POtJM6d/Tb68uyF1hw7Temm9y/fZRV5qpffZXfDgmlzrbcJ1S5P8jsVBxT b7bn2O4IyuhEWJn1yYMotjfdZbX6gTCi0o1rk= Original-Received: by 10.100.139.20 with SMTP id m20mr4046874and.77.1213358677684; Fri, 13 Jun 2008 05:04:37 -0700 (PDT) Original-Received: by 10.100.252.6 with HTTP; Fri, 13 Jun 2008 05:04:37 -0700 (PDT) In-Reply-To: X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-Mailman-Approved-At: Fri, 13 Jun 2008 08:19:21 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:54788 Archived-At: ------=_Part_1970_9556840.1213358677659 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Thanks again! On 6/7/08, Nikolaj Schumacher wrote: > > Eli Zaretskii wrote: > > > >> Date: Thu, 5 Jun 2008 17:38:13 +0800 > >> From: "Zhongxing Xu" > >> > > >> I want such style: > >> > >> namespace foo { > >> class A { > >> }; > >> } > > > > > Does "C-c C-l" in the buffer where you edit C++ do what you want? > > > Instead of turning of electric indentation, you can also configure > indentation to do what you want. > > In this case, customize the variable `c-offsets-alist' and set the value > `innamespace' to 0. > > regards, > > Nikolaj Schumacher > > > ------=_Part_1970_9556840.1213358677659 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Thanks again!

On 6/7/08, Nikolaj Schumacher <n_schumacher@web.de> wrote:
Eli Zaretskii <eliz@gnu.org> wrote:


>> Date: Thu, 5 Jun 2008 17:38:13 +0800
>> From: "Zhongxing Xu" <mymlreader@gmail.com>
>>

>> I want such style:
>>
>> namespace foo {
>> class A {
>> };
>> }
>

> Does "C-c C-l" in the buffer where you edit C++ do what you want?


Instead of turning of electric indentation, you can also configure
indentation to do what you want.

In this case, customize the variable `c-offsets-alist' and set the value
`innamespace' to 0.

regards,

Nikolaj Schumacher



------=_Part_1970_9556840.1213358677659--