From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Eric Lilja" Newsgroups: gmane.emacs.help Subject: Change ellemtel indention (C++) Date: 2 Dec 2006 06:47:42 -0800 Organization: http://groups.google.com Message-ID: <1165070862.730566.199910@80g2000cwy.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1165074034 32115 80.91.229.2 (2 Dec 2006 15:40:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 2 Dec 2006 15:40:34 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Dec 02 16:40:32 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GqWyX-00051f-0s for geh-help-gnu-emacs@m.gmane.org; Sat, 02 Dec 2006 16:40:25 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GqWyW-0000Xn-M3 for geh-help-gnu-emacs@m.gmane.org; Sat, 02 Dec 2006 10:40:24 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!80g2000cwy.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 51 Original-NNTP-Posting-Host: 85.194.49.108 Original-X-Trace: posting.google.com 1165070868 24480 127.0.0.1 (2 Dec 2006 14:47:48 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sat, 2 Dec 2006 14:47:48 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; sv-SE; rv:1.8.1) Gecko/20061010 Firefox/2.0,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: 80g2000cwy.googlegroups.com; posting-host=85.194.49.108; posting-account=VhnPwg0AAAB7O5OQRS5Hs376X47qoQdE Original-Xref: shelby.stanford.edu gnu.emacs.help:143601 Original-To: help-gnu-emacs@gnu.org 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:39204 Archived-At: Hello, in ellemtel indentation mode c++ access labels (public, private, proteceted) are indented from the opening brace of the class, like this: class Foo { public: Foo() {} }; I want it to look like this: class Foo { public: Foo() {} }; I changed ellemtel in the following way and thought I had it: (c-set-style "ellemtel") (c-set-offset 'access-label '--) (c-set-offset 'topmost-intro '-) (c-set-offset 'inline-open '-) But then I noticed that messes up indentation after the opening brace of an enclosing namespace: namespace { class Foo { public: Foo() {} }; } I want it to be: namespace { class Foo { public: Foo() {} }; } How should I alter ellemtel to achieve this without breaking anything else? / E