Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何向 Emacs 模式行添加一个指示器以指示follow-mode在当前缓冲区中启用该指示器?
follow-mode
尝试
(push (list 'follow-mode " Follow") minor-mode-alist)
这是一种可行的天真方式
(push '(:eval (if follow-mode "Following... " "")) global-mode-string)
但请参考mode-line-formatusing的文档C-h v,因为global-mode-string在这种情况下可能会被滥用。
mode-line-format
C-h v
global-mode-string