我希望我的
有什么想法吗?
linum-mode
行号能够右对齐。我在emacswiki上找到了最接近的东西,但是它不起作用 - 它似乎是将数字左对齐而不是右对齐。这个片段可以在这里找到。抱歉我的缩进很糟糕,lisp对我来说相当陌生 :)(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)))
有什么想法吗?
M-x customize
进行更改。 - asmeurerdefadvice
在数字后仍然添加空格。是的,你可以使用customize
,它与custom-set-variables
相关。 - aculich