In emacs, how can I highlight the current line only in the current frame?

In Emacs (23 on Mac Leopard), I discovered how to highlight the current line using the hl-line mode, but when used worldwide in all buffers, it selects the current line in all the buffers in all frames.

I would like to highlight the current line (or at least have a different face for it) only in the current active buffer. I am sure this should be possible to some extent, as the cursor changes depending on whether the current current buffer is.

thanks

Singletoned

+4
source share
1 answer

By looking at the documentation for hl-line-mode , you can enable the hl-line-sticky-flag variable. Try

 Ch v hl-line-sticky-flag 

to find out, not zero, and if so, add

 (setq hl-line-sticky-flag nil) 

to your .emacs.

+5
source

All Articles