刚编译了Emacs30,看NEWS的时候发现有一个新的符号能够用来方便的让ModeLine中的内容左右对齐。
+++
** Modeline elements can now be right-aligned.
Anything following the symbol 'mode-line-format-right-align' in
'mode-line-format' will be right-aligned. Exactly where it is
right-aligned to is controlled by the new user option
'mode-line-right-align-edge'.
效果大概如此: