zsome · 2022-04-05 06:29
Hi!
do you know any other highlight the current line solution for emacs.
My problem is that I can't avoid that the hl-line modify the background.
I just would like a border around the current row.
It is because the "color" is \~ugly in css file if I be in that line.
​
https://preview.redd.it/wptxwitnmnr81.png?width=356&format=png&auto=webp&s=382c105aa3c56f8080f4aa84259573d681e9af5a
Edit: I found the highlight-current-line and I can configure it in that way what I thought
deaddyfreddy · 2022-04-05 08:01
just customize its face, no need for another solution
zsome · 2022-04-05 11:22
Can you give me an example because I couldn't drop the background... ? Please!
redblobgames · 2022-04-05 15:41
`(set-face-attribute 'hl-line nil :background nil)` will take out the background but I haven't found any good alternatives. Using overline+underline shifts everything 1 pixel vertically. Using underline itself might work. Using :box shifts everything vertically, unless using a negative width, in which it shifts everything horizontally (see [thread](https://old.reddit.com/r/emacs/comments/ceajn7/emacs_box_attribute_kinda_sucks/)).
gogaxxx · 2022-04-05 15:42
He is right, if you remove all customizations from highlight face it still stays a bit lighter than the default background.