Skip to content

Instantly share code, notes, and snippets.

@guehara
Created May 14, 2012
Embed
What would you like to do?
linum-mode で行数に応じて幅を調整
;; 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