如何向Emacs modeline添加一个指示器,以指示当前缓冲区中启用了follow-mode?
发布于 2012-07-04 22:43:16
试一试
(push (list 'follow-mode " Follow") minor-mode-alist)发布于 2012-07-04 21:37:04
这是一种天真的工作方式。
(push '(:eval (if follow-mode "Following... " "")) global-mode-string)但是一定要参考使用C-h v的mode-line-format文档,因为在这种情况下,global-mode-string可能会滥用。
https://stackoverflow.com/questions/11326350
复制相似问题