From: zhang cc <ccsmile2008@outlook.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: "emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: Re: How to let hl-line-mode ignore text with non-default background color?
Date: Wed, 10 Jan 2018 09:23:46 +0000 [thread overview]
Message-ID: <SG2PR0601MB14050EF4806BE97A84E6447AA8110@SG2PR0601MB1405.apcprd06.prod.outlook.com> (raw)
In-Reply-To: <83tvvu6e4d.fsf@gnu.org>
[-- Attachment #1.1: Type: text/plain, Size: 600 bytes --]
On 10 Jan 2018, 3:12 AM +0800, Eli Zaretskii <eliz@gnu.org>, 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.
[cid:5EBA4A6DE49D4C27A93FF932987C8227]
[-- Attachment #1.2: Type: text/html, Size: 1268 bytes --]
[-- Attachment #2: distant_foreground-1.png --]
[-- Type: image/png, Size: 601715 bytes --]
next prev parent reply other threads:[~2018-01-10 9:23 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-09 2:25 How to let hl-line-mode ignore text with non-default background color? zhang cc
2018-01-09 3:45 ` Eli Zaretskii
2018-01-09 6:21 ` zhang cc
2018-01-09 19:12 ` Eli Zaretskii
2018-01-10 9:23 ` zhang cc [this message]
2018-01-10 15:38 ` Eli Zaretskii
2018-01-11 0:29 ` zhang cc
[not found] <3d53b7ae-a4cf-4405-8669-706781bb4889@Spark>
2018-01-09 2:42 ` zhang cc
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=SG2PR0601MB14050EF4806BE97A84E6447AA8110@SG2PR0601MB1405.apcprd06.prod.outlook.com \
--to=ccsmile2008@outlook.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.