In Emacs, how to line up equals signs in a series of initialization statements?

前端 未结 3 1840
-上瘾入骨i
-上瘾入骨i 2020-12-13 09:37

I saw this somewhere, but cannot find it now. Is there a built-in function in emacs, or does someone have elisp, to line up all the equals signs in a series of inititializa

3条回答
  •  -上瘾入骨i
    2020-12-13 10:14

    Use M-x align-regexp (here, M-x align-regexp RET = RET). You can also add an "alignment rule" to the variable align-rules-list, so that in future M-x align will do it. See the documentation (C-h f align) for details.

提交回复
热议问题