请参阅C-hf align-regexp
RET,特别是链接C-hv align-rules-list
RET,它提供了一些最佳的对齐文档。
“要修改的组”是指图案中对齐时要缩小或扩大的组。您几乎总是希望该组是纯空白,以避免删除实际内容。
GROUP 参数——交互地“要修改的括号组(如果为负则证明)”——是正则表达式中相关组的编号,从 1 开始计数。
理由部分有点棘手。如果您提供负数,则使用相同的组,就好像该数字为正数一样,但align-rules-list
也会触发变量的“调整”行为:
`justify'
It is possible with `regexp' and `group' to identify a
character group that contains more than just whitespace
characters. By default, any non-whitespace characters in
that group will also be deleted while aligning the
alignment character. However, if the `justify' attribute
is set to a non-nil value, only the initial whitespace
characters within that group will be deleted. This has
the effect of right-justifying the characters that remain,
and can be used for outdenting or just plain old right-
justification.