nordtheme/emacs

left margin matches left char with global-linum-mode

dylnmc opened this issue · 3 comments

emacs

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.

doesn't work for me, even if I add two spaces:

screenshot from 2017-12-31 03-31-48

I also tried adding a separator (\u2502)

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):

screenshot from 2017-12-31 11-58-55

Closing because not issue with theme (unless you want to disable all of those face attributes for linum faces, but I'd assume not).