emacs-devel
[Top][All Lists]
Advanced

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

Re: How to let hl-line-mode ignore text with non-default background colo


From: Eli Zaretskii
Subject: Re: How to let hl-line-mode ignore text with non-default background color?
Date: Wed, 10 Jan 2018 17:38:02 +0200

> From: zhang cc <address@hidden>
> CC: "address@hidden" <address@hidden>
> Date: Wed, 10 Jan 2018 09:23:46 +0000
> 
> On 10 Jan 2018, 3:12 AM +0800, Eli Zaretskii <address@hidden>, wrote: 
> 
>  If you must set the foreground of the text the same as the background
>  of the hl-line face, then customize the hl-line face to define the
>  "distant foreground" color for it. E.g., I defined the "distant
>  foreground" to be black, and the problem went away. 
> 
> Tried with some colors. It didn’t always work well. For example, in the 
> following picture, the left is the test
> code, the right is the details of the face hl-line, the highlighted one line 
> in the left window is the result.

That's because you've chosen the distant foreground poorly.

Look, you can always shoot yourself in the foot if you intentionally
arrange your colors to produce bad contrast.  That doesn't prove
anything, certainly not that there's a bug or a missing feature.  If
you play with colors, you need to choose them carefully, that's all.



reply via email to

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