From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Wehmann Newsgroups: gmane.emacs.help Subject: Re: align values in a lisp let form Date: Mon, 26 Sep 2005 14:23:19 -0500 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1127815742 2219 80.91.229.2 (27 Sep 2005 10:09:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 27 Sep 2005 10:09:02 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 27 12:08:55 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EKCMr-0007KL-7l for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Sep 2005 12:07:21 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EKCMo-0006yy-99 for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Sep 2005 06:07:18 -0400 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Security Through Obscurity, usg-unix-v) Cancel-Lock: sha1:/rhWdJFX0u0Vt5zIvGbOsBEQ1nw= Original-NNTP-Posting-Host: fsui03.fnal.gov Original-X-Trace: news3.es.net 1127762599 131.225.68.24 (26 Sep 2005 12:23:19 -0700) Original-Lines: 38 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!feednews.vanderbilt.edu!feed.news.qwest.net!news3.es.net!not-for-mail Original-Xref: shelby.stanford.edu gnu.emacs.help:134170 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:29740 Archived-At: Kevin Ryde writes: > Is there a way to align values in a let when editing, ie. to go from > > (let ((x 1) > (foo 2) > (zz 3)) > > to > > (let ((x 1) > (foo 2) > (zz 3)) > > I made myself a bit of code to do it, but I'd be surprised if nobody > else has done something like this before. align.el doesn't seem to > suit. > > pretty-column.el has function pretty-rectangle, which will work for the example you've given--in a fashion. I tried it out and got the following: > (let ((x 1) > (foo 2) > (zz 3)) If I choose the rectangle slightly differently, I get this: > (let ((x 1) > (foo 2 ) > (zz 3) ) -- Alan Wehmann wehmann(no_spam)@fnal.gov