hl-line-mode emacs color change

fakedrake picture fakedrake · Dec 21, 2010 · Viewed 10.6k times · Source

Emacs' hl-line-mode is just what i need but i would like to change it's horrible yellow color, anyone know how can i do that?

Answer

Cheeso picture Cheeso · Dec 21, 2010

I use (set-face-background hl-line-face "gray13").

here's what it looks like with a black background.

alt text

Very subtle. Mostly I notice it when moving the cursor, which is what I wanted.

If you want to see a display of all the various colors, try (list-colors-display). It will show a list of colors in a new buffer.

EDIT: heh heh, since I am getting upvoted for pretty pictures, here it is "live":

alt text

(ps: that animated gif was produced with the Cropper tool and the AnimatedGif plugin.)