From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: chun Newsgroups: gmane.emacs.help Subject: how to disable C++ namespace indentation Date: Wed, 27 Jan 2010 12:53:07 -0800 (PST) Organization: http://groups.google.com Message-ID: <18da3b5b-0da4-4d23-a13a-91591db7b2aa@a5g2000yqi.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1264628536 12199 80.91.229.12 (27 Jan 2010 21:42:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 Jan 2010 21:42:16 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 27 22:42:13 2010 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.69) (envelope-from ) id 1NaFeP-0003S4-Jx for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Jan 2010 22:42:13 +0100 Original-Received: from localhost ([127.0.0.1]:34990 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NaFeM-000629-NX for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Jan 2010 16:42:10 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!postnews.google.com!a5g2000yqi.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 15 Original-NNTP-Posting-Host: 155.98.69.32 Original-X-Trace: posting.google.com 1264625587 14617 127.0.0.1 (27 Jan 2010 20:53:07 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 27 Jan 2010 20:53:07 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: a5g2000yqi.googlegroups.com; posting-host=155.98.69.32; posting-account=45vqeAoAAAAWn-3hAEB_fI6PKChgclYC User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.0.249.30 Safari/532.5, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:176449 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:71522 Archived-At: In C++, I want to keep other indentations intact except for namespace brackets, e.g. namespace a { struct A { int b; }; void c { int d; } } The above is what I want. I tried (c-set-offset 'innamespace 0). However it disables automatic indentation at every line when I hit return.