[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: align mysteries
From: |
Teemu Likonen |
Subject: |
Re: align mysteries |
Date: |
Fri, 15 Oct 2021 12:32:40 +0300 |
User-agent: |
Notmuch/0.33 (https://notmuchmail.org) Emacs/27.2.50 (x86_64-pc-linux-gnu) |
* 2021-10-14 20:59:54+0200, Lars Ingebrigtsen wrote:
> So we should at least have a doc string fix here. But is this how
> `align' is supposed to work? It seems awfully quirky.
I will add that I have tried to use `align' a couple of times but I
couldn't figure how to use it. It has been easier to manually align
things.
But now I was successful with `align-regexp'. Consider the following
text as region:
foo bar zot
lalala y indeed
C-u M-x align-regexp
Complex align using regexp: \(\s-*\) [add one space at the end]
Parenthesis group to modify (justify if negative): 1
Amount of spacing (or column if negative): 1
Repeat throughout line? (y or n) y
The resulting text:
foo bar zot
lalala y indeed
I don't quite understand those options but I mostly accepted the
defaults. For the first question I had to add one space (see above).
--
/// Teemu Likonen - .-.. https://www.iki.fi/tlikonen/
// OpenPGP: 4E1055DC84E9DFF613D78557719D69D324539450
signature.asc
Description: PGP signature
- align mysteries, Lars Ingebrigtsen, 2021/10/14
- Re: align mysteries, dick, 2021/10/14
- Re: align mysteries, Lars Ingebrigtsen, 2021/10/14
- Re: align mysteries, H. Dieter Wilhelm, 2021/10/14
- Re: align mysteries, Lars Ingebrigtsen, 2021/10/14
- Re: align mysteries, Lars Ingebrigtsen, 2021/10/14
- Re: align mysteries, Eli Zaretskii, 2021/10/15
- Re: align mysteries, Lars Ingebrigtsen, 2021/10/15
Re: align mysteries, Stefan Monnier, 2021/10/14
Re: align mysteries,
Teemu Likonen <=