目录
配置文件
(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
,以显示行号。