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: Re: Change ellemtel indention (C++) Date: 2 Dec 2006 07:05:47 -0800 Organization: http://groups.google.com Message-ID: <1165071947.579028.64080@l12g2000cwl.googlegroups.com> References: <1165070862.730566.199910@80g2000cwy.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: sea.gmane.org 1165074064 32216 80.91.229.2 (2 Dec 2006 15:41:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 2 Dec 2006 15:41:04 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Dec 02 16:41:01 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 1GqWz0-00054h-4X for geh-help-gnu-emacs@m.gmane.org; Sat, 02 Dec 2006 16:40:54 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GqWyz-0000tT-Om for geh-help-gnu-emacs@m.gmane.org; Sat, 02 Dec 2006 10:40:53 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.isc.org!news.glorb.com!postnews.google.com!l12g2000cwl.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 62 Original-NNTP-Posting-Host: 85.194.49.108 Original-X-Trace: posting.google.com 1165071953 9292 127.0.0.1 (2 Dec 2006 15:05:53 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sat, 2 Dec 2006 15:05:53 +0000 (UTC) In-Reply-To: <1165070862.730566.199910@80g2000cwy.googlegroups.com> 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: l12g2000cwl.googlegroups.com; posting-host=85.194.49.108; posting-account=VhnPwg0AAAB7O5OQRS5Hs376X47qoQdE Original-Xref: shelby.stanford.edu gnu.emacs.help:143602 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:39205 Archived-At: Eric Lilja skrev: > 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 Seems like this does the trick without breaking anything else (what I've noticed so far): (c-set-style "ellemtel") (c-set-offset 'inclass '+) (c-set-offset 'access-label '-) / E