emacs-devel
[Top][All Lists]
Advanced

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

Re: align mysteries


From: Lars Ingebrigtsen
Subject: Re: align mysteries
Date: Thu, 14 Oct 2021 22:59:20 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

dick <dick.r.chiang@gmail.com> writes:

> I mailed everyone the exact same question on Wed, 17 Feb 2021 19:26:32 -0500.
>
> As near as I can tell, the only sensible solution is this:
>
> (defun line-up (start end)
>   "Align columns by whitespace"
>   (interactive "r")
>   (align-regexp start end
>                   "\\(\\s-*\\)\\s-" 1 0 t))
>
> I must have gotten this from stackoverflow, so sorry to whomever wants credit
> for this masterpiece.

Yup; this does exactly what I expected `M-x align' to do.

Is anybody here using `M-x align'?  If so, is it doing what you expect
it to?  :-)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



reply via email to

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