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: How to turn off auto indent in C++ mode? Date: Thu, 5 Jun 2008 17:38:13 +0800 Message-ID: <4619993f0806050238r1d92d12bk276eebc9a71656e8@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_4116_23579544.1212658693308" X-Trace: ger.gmane.org 1212764290 25090 80.91.229.12 (6 Jun 2008 14:58:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Jun 2008 14:58:10 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 06 16:58:53 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 1K4dOt-0003bq-Ps for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Jun 2008 16:58:44 +0200 Original-Received: from localhost ([127.0.0.1]:40336 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K4dO7-00059z-7m for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Jun 2008 10:57:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K4BvF-0006nj-Fg for help-gnu-emacs@gnu.org; Thu, 05 Jun 2008 05:38:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K4BvC-0006m6-V8 for help-gnu-emacs@gnu.org; Thu, 05 Jun 2008 05:38:16 -0400 Original-Received: from [199.232.76.173] (port=35719 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K4BvC-0006lq-Ja for help-gnu-emacs@gnu.org; Thu, 05 Jun 2008 05:38:14 -0400 Original-Received: from an-out-0708.google.com ([209.85.132.242]:53608) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K4BvC-0002g3-Ab for help-gnu-emacs@gnu.org; Thu, 05 Jun 2008 05:38:14 -0400 Original-Received: by an-out-0708.google.com with SMTP id c38so98578ana.84 for ; Thu, 05 Jun 2008 02:38:13 -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:mime-version:content-type; bh=Zdcrj3IEWAHE26qMZMlbxgT5Qi+FExLsI4yQaM3fqpA=; b=vBK5fEEFJNWIGprg6ksd2Jmk3JA9V0Xp4rY6LpQWI5vOv0AE7jIYr0MMPFttaKk48f rXm8G8mydhWUll+LWwN6YerRv41r07INeWqAzpDEmPsPjd2pu8j/LLj+wFTKt40rEbhL 5oTDAsyfgr7m3I0vnlPJLbzQpmVsuHg3p+evE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=tJRvtsrYbybDaet4c6/aBFOiUfhsJFAY5vMPzDH2PQX/+U1zMeHREf+M7HFI/Y2Dnq /Q/pS1IlEdcobsK3/9GgrufUqYqYj2GpTZsPOWd65H4H5qJUzs+ecE/6jSikey7Jo+Yl ra5LY5CD5+leZTi8GCyUTUW2DrWLbq9ZzuT9w= Original-Received: by 10.100.142.4 with SMTP id p4mr2063999and.23.1212658693315; Thu, 05 Jun 2008 02:38:13 -0700 (PDT) Original-Received: by 10.101.1.19 with HTTP; Thu, 5 Jun 2008 02:38:13 -0700 (PDT) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-Mailman-Approved-At: Fri, 06 Jun 2008 10:50:14 -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:54521 Archived-At: ------=_Part_4116_23579544.1212658693308 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline When I am using c++ mode to edit c++ sources, emacs always auto indent the class declarations inside a namespace. I don't want the auto indentation inside a namespace. How to turn off it? Code example: I want such style: namespace foo { class A { }; } emacs forces to: namespace foo { class A { }; } I have to delete the spaces in front of "class A" manually. Greetings, Zhongxing Xu ------=_Part_4116_23579544.1212658693308 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline When I am using c++ mode to edit c++ sources, emacs always auto indent the class declarations inside a namespace. I don't want the auto indentation inside a namespace. How to turn off it?

Code example:
I want such style:

namespace foo {
class A {
};
}

emacs forces to:

namespace foo {
  class A {
  };
}

I have to delete the spaces in front of "class A" manually. 

Greetings,

Zhongxing Xu
------=_Part_4116_23579544.1212658693308--