Created
May 14, 2012 08:33
-
-
Save guehara/2692728 to your computer and use it in GitHub Desktop.
linum-mode で行数に応じて幅を調整
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; linum | |
(require 'linum) | |
(setq linum-format | |
(lambda (line) (propertize (format (let ((w (length (number-to-string (count-lines (point-min) (point-max)))))) (concat "%" (number-to-string w) "d")) line) 'face 'linum))) | |
(global-linum-mode t) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment