I can't find a setting to turn off that small pixel indentation when cursor is highlighting the line you're on. It makes it hard to try to type text to align when the line itself is indented a few pixels in. I want the line to be visually highlighted but with no indentation. It's really annoying that way.
1 Answer
There is no setting to deliberately visually indent the highlighted line merely because it is highlighted. Instead it sounds like the face used during highlighting doesn’t match the face used for the rest of the document.
Use M-x customize-face
to view and potentially edit the hl-line
face. Make sure that it only has attributes that won’t affect the size of the text.
-
1The
:box
setting does this on my system, so make sure yourhl-line
face doesn't have a:box
. (see emacs.stackexchange.com/questions/47002/…)– amitpCommented Apr 3, 2022 at 4:17 -