From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nikolaj Schumacher Newsgroups: gmane.emacs.help Subject: Re: How to turn off auto indent in C++ mode? Date: Sat, 07 Jun 2008 11:42:39 +0200 Message-ID: References: <4619993f0806050238r1d92d12bk276eebc9a71656e8@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1212831808 6705 80.91.229.12 (7 Jun 2008 09:43:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 7 Jun 2008 09:43:28 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jun 07 11:44:09 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 1K4uy0-0002bh-Eh for geh-help-gnu-emacs@m.gmane.org; Sat, 07 Jun 2008 11:44:08 +0200 Original-Received: from localhost ([127.0.0.1]:53790 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K4uxD-0004XR-Kl for geh-help-gnu-emacs@m.gmane.org; Sat, 07 Jun 2008 05:43:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K4uwm-0004Uv-3D for help-gnu-emacs@gnu.org; Sat, 07 Jun 2008 05:42:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K4uwj-0004Sc-M0 for help-gnu-emacs@gnu.org; Sat, 07 Jun 2008 05:42:51 -0400 Original-Received: from [199.232.76.173] (port=48997 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K4uwj-0004SK-3f for help-gnu-emacs@gnu.org; Sat, 07 Jun 2008 05:42:49 -0400 Original-Received: from fmmailgate02.web.de ([217.72.192.227]:37404) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K4uwd-00017Q-Dv; Sat, 07 Jun 2008 05:42:43 -0400 Original-Received: from smtp07.web.de (fmsmtp07.dlan.cinetic.de [172.20.5.215]) by fmmailgate02.web.de (Postfix) with ESMTP id 068CAE0A7775; Sat, 7 Jun 2008 11:42:41 +0200 (CEST) Original-Received: from [77.135.10.95] (helo=thursday-2.local) by smtp07.web.de with asmtp (WEB.DE 4.109 #226) id 1K4uwa-0001Jn-00; Sat, 07 Jun 2008 11:42:40 +0200 In-Reply-To: (Eli Zaretskii's message of "Fri\, 06 Jun 2008 19\:26\:55 +0300") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (darwin) X-Sender: n_schumacher@web.de X-Provags-ID: V01U2FsdGVkX19wyjhB49bmFED7E2OSq/Izqu8Q23hiGbvEWLe6 528uiKWdf44q2On4UEwTgX1rpY2asZO7vIa7r3dnePZMgkYXwC yb6FvguSHvFaVKip05Bg== X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 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:54575 Archived-At: 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