Closed ktfleming closed 1 year ago
Hello @ktfleming! This is a tricky case. On the one hand, it makes sense for Embark to highlight the target with the highlight
face. On the other, using the isearch lazy highlights is not consistent with how isearch uses those as its current match is yellow. We may thus need to revise the Embark face.
At any rate, I just pushed commit 4e331d2
which revises the colour that Embark uses for the current target. If that is enough, then we don't make any further changes. What do you think?
At any rate, I just pushed commit 4e331d2 which revises the colour that Embark uses for the current target. If that is enough, then we don't make any further changes. What do you think?
It looks good to me now -- thank you!
Very well! The other option would be to make Embark look like isearch, though I tried it and it feels a bit strange, especially for larger portions of text.
Hi Prot,
By default, Embark's
embark-indicators
is set to(embark-mixed-indicator embark-highlight-indicator embark-isearch-highlight-indicator)
. Regarding the last two, the docstring forembark-isearch-highlight-indicator
says this:However, with the default colors for
modus-operandi
, this effect ("you get the target and the other occurrences of it highlighted in different colors") is not really apparent. Here's a screenshot of some code from Emacs'sxdisp.c
:I've put the point on one of the
area
identifiers and calledembark-act
. After doing so, the otherarea
identifiers are highlighted. They're actually using different faces with slightly different colors, but to me they look like essentially the same color. The one under the point uses the faceembark-target
which inherits fromhighlight
which inmodus-operandi
is#94d4ff
. Meanwhile I believe the other identifiers use thelazy-highlight
face, which is#a4d5f9
(cyan-intense).Compare to using Isearch, where the "current" and "other" matches are quite different:
In
modus-vivendi
the two faces are a bit more distinguishable, although still fairly close to my eyes:I'm not sure what the best approach is, but it would be nice if these two faces were more immediately distinguishable (like when using Isearch).