[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: C++ variable declaration alignment.
From: |
Ludwig, Mark |
Subject: |
RE: C++ variable declaration alignment. |
Date: |
Thu, 26 Jul 2012 15:50:07 +0000 |
> 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