From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: chun Newsgroups: gmane.emacs.help Subject: Re: how to disable C++ namespace indentation Date: Wed, 27 Jan 2010 20:16:44 -0800 (PST) Organization: http://groups.google.com Message-ID: <94ec4089-ba16-427a-a1e3-125f41bc84f0@2g2000prl.googlegroups.com> References: <18da3b5b-0da4-4d23-a13a-91591db7b2aa@a5g2000yqi.googlegroups.com> <5fe787a11001271944u14a971dfq7be47ea079dd50a2@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1264653700 19156 80.91.229.12 (28 Jan 2010 04:41:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Jan 2010 04:41:40 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 28 05:41:37 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 1NaMCE-0008E8-UR for geh-help-gnu-emacs@m.gmane.org; Thu, 28 Jan 2010 05:41:35 +0100 Original-Received: from localhost ([127.0.0.1]:43571 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NaMCE-00054i-BD for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Jan 2010 23:41:34 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!postnews.google.com!2g2000prl.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 30 Original-NNTP-Posting-Host: 24.10.246.218 Original-X-Trace: posting.google.com 1264652204 608 127.0.0.1 (28 Jan 2010 04:16:44 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 28 Jan 2010 04:16:44 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 2g2000prl.googlegroups.com; posting-host=24.10.246.218; 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:176460 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:71531 Archived-At: Brilliant. It works. I did a quick merge into my existing .emacs format like this: (c-add-style "mycodingstyle" '((c-comment-only-line-offset . 0) (c-hanging-braces-alist . ((substatement-open before after))) (c-offsets-alist . ((topmost-intro . 0) (topmost-intro-cont . 0) (substatement . 3) (substatement-open . 0) (statement-case-open . 3) (statement-cont . 3) (access-label . -3) (inclass . 3) (inline-open . 3) (innamespace . 0) )))) ;; c/c++ mode (add-hook 'c-mode-common-hook '(lambda() (c-set-style "mycodingstyle") (setq tab-width 2) (setq c-basic-offset tab-width))) Thanks so much for help!!! Chun