coldnew / linum-relative

display relative line number in the left margin in emacs
169 stars 20 forks source link

Customize colors #32

Closed sondr3 closed 8 years ago

sondr3 commented 8 years ago

I haven't been to customize the colors set by this plugin, and am a bit of a Emacs newbie so I'm not sure where to begin to look. I managed to change everything else I wanted and tried to change the colors, but couldn't get it to work.

This is how it looks: screen shot 2016-02-28 at 03 33 04. I don't want that black background on the current line, but not sure where to change it.

coldnew commented 8 years ago

You can customize the current face by M-x customize-group and select linum-relative group , you'll see customize setting like below:

screen shot 2016-02-28 at 6 22 59 pm

Or just add following code to your .emacs :)

(custom-set-faces '(linum-relative-current-face
                    ((t :inherit linum :foreground "red" :background "white" :weight bold))))
sondr3 commented 8 years ago

Fantastic, thanks a lot!