Ŀ¼
(global-linum-mode t) (defadvice linum-update-window (around linum-dynamic activate) (let* ((w (length (number-to-string (count-lines (point-min) (point-max))))) (linum-format (concat "%" (number-to-string w) "d "))) ad-do-it))
(global-linum-mode t)
的含义为,在Emacs
上的所有buffers
中开启linum-mode
,以显示行号。
来源:博客园
作者:asvblog
链接:https://www.cnblogs.com/asvblog/p/11456142.html