From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Ludwig, Mark" Newsgroups: gmane.emacs.help Subject: RE: C++ variable declaration alignment. Date: Thu, 26 Jul 2012 15:50:07 +0000 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1343317840 20333 80.91.229.3 (26 Jul 2012 15:50:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 26 Jul 2012 15:50:40 +0000 (UTC) To: Andrea Venturoli , "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 26 17:50:39 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 1SuQKk-0005fb-9I for geh-help-gnu-emacs@m.gmane.org; Thu, 26 Jul 2012 17:50:38 +0200 Original-Received: from localhost ([::1]:42511 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SuQKj-00007A-MB for geh-help-gnu-emacs@m.gmane.org; Thu, 26 Jul 2012 11:50:37 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40275) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SuQKc-00006g-8S for help-gnu-emacs@gnu.org; Thu, 26 Jul 2012 11:50:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SuQKY-0003B7-8W for help-gnu-emacs@gnu.org; Thu, 26 Jul 2012 11:50:30 -0400 Original-Received: from uscimhub002.ugs.com ([146.122.22.36]:22040 helo=ugs.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SuQKY-0003Au-3b for help-gnu-emacs@gnu.org; Thu, 26 Jul 2012 11:50:26 -0400 Original-Received: from USCIMMBX003.net.plm.eds.com ([169.254.4.183]) by USCIMHUB002.net.plm.eds.com ([146.122.22.36]) with mapi id 14.01.0323.003; Thu, 26 Jul 2012 11:50:09 -0400 Thread-Topic: C++ variable declaration alignment. Thread-Index: AQHNZPjZ0pwpUUIqNkSQ0nfJn0buKZc27oYCgATRo7A= In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [146.122.225.182] X-detected-operating-system: by eggs.gnu.org: Windows 2000 SP2+, XP SP1+ (seldom 98) X-Received-From: 146.122.22.36 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:86081 Archived-At: > From: Andrea Venturoli > Sent: Monday, July 23, 2012 7:08 AM > To: help-gnu-emacs@gnu.org > Subject: Re: C++ variable declaration alignment. >=20 > 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'... >=20 > 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