The minor mode global-hl-line highlights the current line "permanently" (until it is disabled).

Instead, I would prefer a command which highlights the current line for, say, one second.

Has anybody done this?


1 Answer 1

  • You can use command flash-line-highlight (e.g., bind it to a key) to highlight the current line for line-show-period seconds (which you can customize). This is in library hl-line+.el. See Highlight Current Line.

  • If you want to highlight both the line and the column temporarily then you can use command flash-crosshairs (bind it to a key). This is in library crosshairs.el. See Crosshair Highlighting.

  • Someone want to explain the downvote?
    – Drew
    Commented Feb 22, 2023 at 14:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.