help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: align values in a lisp let form


From: Stefan Monnier
Subject: Re: align values in a lisp let form
Date: Sat, 24 Sep 2005 12:38:08 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

> 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.

The align.el package (see C-h f align RET) is meant to do those kinds of
things, tho it doesn't seem to have an alignment rule for the above case.
You can also try C-h f align-regexp.


        Stefan


reply via email to

[Prev in Thread] Current Thread [Next in Thread]