all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Ludwig, Mark" <ludwig.mark@siemens.com>
To: Andrea Venturoli <ml.diespammer@netfence.it>,
	"help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: RE: C++ variable declaration alignment.
Date: Thu, 26 Jul 2012 15:50:07 +0000	[thread overview]
Message-ID: <BC5672F8AD4C054BAF167C9801500D1A9B9A8EAF@USCIMMBX003.net.plm.eds.com> (raw)
In-Reply-To: <jujeql$24i$1@speranza.aioe.org>

> From: Andrea Venturoli
> Sent: Monday, July 23, 2012 7:08 AM
> To: help-gnu-emacs@gnu.org
> Subject: Re: C++ variable declaration alignment.
> 
> On 07/19/12 22:48, Chris Gordon-Smith wrote:
> > Have you tried the various alignment options? In my .emacs I have:
> > ;; Indentation style
> >    (setq c-default-style "stroustrup")
> >
> > But I could have had one of several others. 'gnu', 'k&r', 'bsd',
> > 'whitesmith', 'ellemtel, 'linux'...
> 
> Yes.
> Unless I'm missing something, none of them does what I asked.
> Am I missing something?

I had a need to make Emacs align C, C++, and Java code the way the rest of the organization was aligning by hand (with spaces in vi and other editors).  The way I got it to do what I wanted was to create my own "style" -- and that requires writing a small amount of Emacs Lisp....

Cheers,
Mark




      parent reply	other threads:[~2012-07-26 15:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-18 15:16 C++ variable declaration alignment Andrea Venturoli
2012-07-18 21:28 ` Peter
2012-07-23 12:08   ` Andrea Venturoli
2012-07-19 20:48 ` Chris Gordon-Smith
2012-07-23 12:07   ` Andrea Venturoli
2012-07-24 22:24     ` Chris Gordon-Smith
2012-07-26 15:50     ` Ludwig, Mark [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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BC5672F8AD4C054BAF167C9801500D1A9B9A8EAF@USCIMMBX003.net.plm.eds.com \
    --to=ludwig.mark@siemens.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=ml.diespammer@netfence.it \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.