From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chris Gordon-Smith Newsgroups: gmane.emacs.help Subject: Re: C++ variable declaration alignment. Date: 19 Jul 2012 20:48:02 GMT Message-ID: References: NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1342731015 6875 80.91.229.3 (19 Jul 2012 20:50:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 19 Jul 2012 20:50:15 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 19 22:50:13 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Srxfo-0000K6-Ms for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Jul 2012 22:50:12 +0200 Original-Received: from localhost ([::1]:58818 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Srxfo-0001XO-0d for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Jul 2012 16:50:12 -0400 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 44 Original-X-Trace: individual.net o7tA9vAhrXONK0pcXT5D5wNChHKc8JzAZKMLHFo4GmIQELm5pADLwHmHUjBcIqwEx2 Cancel-Lock: sha1:23d7ukrNcytQBvf/oL2FhEmPXTw= User-Agent: slrn/pre1.0.0-18 (Linux) Original-Xref: usenet.stanford.edu gnu.emacs.help:193574 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:85947 Archived-At: Andrea Venturoli : > 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