Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Emacs(Mac Leopard 上为 23)中,我发现了如何使用 hl-line-mode 突出显示当前行,但是当在所有缓冲区中全局使用它时,它会突出显示所有帧中所有缓冲区中的当前行。
我希望能够仅在当前活动的缓冲区中突出显示当前行(或至少有不同的面)。我确信这在某种程度上必须是可能的,因为光标的变化取决于缓冲区是否是当前缓冲区。
谢谢
单调
查看 的文档hl-line-mode,看来您可能已hl-line-sticky-flag打开该变量。尝试
hl-line-mode
hl-line-sticky-flag
C-h v hl-line-sticky-flag
查看它是否为非零,如果是,则添加
(setq hl-line-sticky-flag nil)
到你的 .emacs。