unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* hl-line mode -- visual effect
@ 2022-08-10 17:51 Dani Moncayo
  2022-08-10 18:10 ` Eli Zaretskii
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Dani Moncayo @ 2022-08-10 17:51 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org list

Hello guys,

I have this in my init file, to enable "hl-line" mode in all my buffers:
  (global-hl-line-mode 1)

Until now, I have customized the "hl-line" font to set a background
color, slightly more saturated than the background of the "default"
font.

This approach has worked reasonably well for me for quite some time.
But it's not perfect: I have buffers (eg. "*Diff*" buffer)
where the background color of each line conveys valuable semantic
information (added line, removed line, ...), and thus, in those
buffers,
my current approach doesn't work well, because the background color of
the selected line is fixed (i.e. _overrides_ the _original_ background
color of the line).

So, I'd like to highlight the selected line in a more subtle way: I'd
like the selected line to slightly alter[1] the _original_ background
color.

Does Emacs currently provide a reasonably simple way to achieve this?

TIA

-- 
Dani Moncayo

[1] "alter" could be something like "increase a bit the saturation or lightness"



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-08-12  6:24 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-10 17:51 hl-line mode -- visual effect Dani Moncayo
2022-08-10 18:10 ` Eli Zaretskii
2022-08-10 19:45 ` Jean Louis
2022-08-11  7:27 ` Dani Moncayo
2022-08-11 21:16   ` Jean Louis
2022-08-12  5:40     ` Eli Zaretskii
2022-08-12  6:20     ` Dani Moncayo
2022-08-12  6:24       ` tomas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).