From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: How to turn off auto indent in C++ mode? Date: Fri, 06 Jun 2008 19:26:55 +0300 Message-ID: References: <4619993f0806050238r1d92d12bk276eebc9a71656e8@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1212769811 13360 80.91.229.12 (6 Jun 2008 16:30:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Jun 2008 16:30:11 +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 18:30:52 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 1K4epp-0007La-Mv for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Jun 2008 18:30:37 +0200 Original-Received: from localhost ([127.0.0.1]:58767 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K4ep2-0000XT-Qa for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Jun 2008 12:29:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K4enH-0008Ph-E2 for help-gnu-emacs@gnu.org; Fri, 06 Jun 2008 12:27:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K4enF-0008P3-Mp for help-gnu-emacs@gnu.org; Fri, 06 Jun 2008 12:27:59 -0400 Original-Received: from [199.232.76.173] (port=48189 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K4enF-0008Ow-FY for help-gnu-emacs@gnu.org; Fri, 06 Jun 2008 12:27:57 -0400 Original-Received: from mtaout4.012.net.il ([84.95.2.10]:9027) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K4enF-0004uy-0D for help-gnu-emacs@gnu.org; Fri, 06 Jun 2008 12:27:57 -0400 Original-Received: from HOME-C4E4A596F7 ([80.230.28.131]) by i_mtaout4.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0K21008BIVPS2B62@i_mtaout4.012.net.il> for help-gnu-emacs@gnu.org; Fri, 06 Jun 2008 19:41:52 +0300 (IDT) In-reply-to: <4619993f0806050238r1d92d12bk276eebc9a71656e8@mail.gmail.com> X-012-Sender: halo1@inter.net.il X-detected-kernel: by monty-python.gnu.org: Solaris 9.1 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:54534 Archived-At: > Date: Thu, 5 Jun 2008 17:38:13 +0800 > From: "Zhongxing Xu" > > 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 { > }; > } Does "C-c C-l" in the buffer where you edit C++ do what you want?