all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Chris Gordon-Smith <use.address@my.homepage>
To: help-gnu-emacs@gnu.org
Subject: Re: C++ variable declaration alignment.
Date: 19 Jul 2012 20:48:02 GMT	[thread overview]
Message-ID: <a6ra42F1j5U1@mid.individual.net> (raw)
In-Reply-To: ju6k0k$dat$1@speranza.aioe.org

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


  parent reply	other threads:[~2012-07-19 20:48 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 [this message]
2012-07-23 12:07   ` Andrea Venturoli
2012-07-24 22:24     ` Chris Gordon-Smith
2012-07-26 15:50     ` Ludwig, Mark

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=a6ra42F1j5U1@mid.individual.net \
    --to=use.address@my.homepage \
    --cc=help-gnu-emacs@gnu.org \
    /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.