left margin matches left char with global-linum-mode
dylnmc opened this issue · 3 comments
When there is a button flushed left and global-linum-mode
is enabled, the button extends into the left margin (where the linums exist).
The theme leuven
has the same problem. Most of the other themes I have seen do not try to do this.
Is this something that the theme should turn off? I couldn't find what setting it would be...
Thanks
Try to set (setq linum-format "%d ")
in your config which allows to define the formatting of the line number. It's documented for linum
in the chapter about separating line numbers from text.
I think this config should not be handled by any theme, each user has other preferences and would like to customize it, but the underlined text and duplicated button borders which are rendering in the gutter seem to be misplaced there.
Under custom-set-faces
, I have put:
'(linum ((t (:stipple nil :foreground "#4C566A" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal)))))
(In reality, I just used M-x customize
search ~Linum
~> Linum faces
~~> disable all face attributes.) Looks fine now (Revert
button still a little weird):
Closing because not issue with theme (unless you want to disable all of those face attributes for linum faces, but I'd assume not).