help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Customizing the color of line highlight


From: harven
Subject: Re: Customizing the color of line highlight
Date: Wed, 08 Dec 2010 15:36:02 -0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

Philip <phil.ganchev@gmail.com> writes:

> How can I customize the color of line highlighting? I am using Emacs
> 21 with hl-line.el to highlight the current line, on a 256-color
> xterm. I have:
>
> (setq hl-line-face 'hl-line)
> (global-hl-line-mode t) ; turn it on for all modes by default
>
> And I tried:
>
> (defface hl-line '((t (:background "gray90")))
>     "Face to use for `hl-line-face'." :group 'hl-line)
>
> (set-face-background 'highlight "#eee")
>
> (set-face-background 'highlight "goldenrod yellow")
>
> But it's still the default gray, which is too dark on a white
> background. M-x list-colors-display shows all the colors fine.

The following works for me.

(set-face-background 'hl-line "gray80")

You can also access the list of faces with M-x list-faces-display
and modify it from there.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]