Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

hl-line-mode emacs color change

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?

like image 792
fakedrake Avatar asked Dec 21 '10 00:12

fakedrake


People also ask

How do I change colors in Emacs?

To change the foreground or background color in Emacs through the windowing interface, you can use the menu commands Foreground Color->Other and Background Color->Other in the Edit->Text Properties menu.


1 Answers

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

like image 127
Cheeso Avatar answered Nov 05 '22 06:11

Cheeso