[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: C++ variable declaration alignment.
From: |
Chris Gordon-Smith |
Subject: |
Re: C++ variable declaration alignment. |
Date: |
19 Jul 2012 20:48:02 GMT |
User-agent: |
slrn/pre1.0.0-18 (Linux) |
Andrea Venturoli <ml.diespammer@netfence.it>:
> Hello.
> I'm using emacs to code in C++ and I'm unhappy with how it alignes
> variable declarations.
>
> What I get is:
>
> double a,
> b;
>
> What I'd like to get is:
> double a,
> b;
>
> Is there any way to do this?
>
>
>
> Also, suppose I have:
>
> return a==b||
> a==c||
> a==d;
>
> I'd like to get:
> return a==b||
> a==c||
> a==d;
>
> Is this possible too?
>
>
> bye & Thanks
> av.
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'...
Chris Gordon-Smith
www.simsoup.info