From: "Eric Lilja" <mindcooler@gmail.com>
Subject: Re: Change ellemtel indention (C++)
Date: 2 Dec 2006 07:05:47 -0800 [thread overview]
Message-ID: <1165071947.579028.64080@l12g2000cwl.googlegroups.com> (raw)
In-Reply-To: <1165070862.730566.199910@80g2000cwy.googlegroups.com>
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
prev parent reply other threads:[~2006-12-02 15:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-02 14:47 Change ellemtel indention (C++) Eric Lilja
2006-12-02 15:05 ` Eric Lilja [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1165071947.579028.64080@l12g2000cwl.googlegroups.com \
--to=mindcooler@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).