【问题标题】:Highlight the current line number for the active buffer in `nlinum-mode`在 `nlinum-mode` 中突出显示活动缓冲区的当前行号
【发布时间】:2019-11-29 11:01:02
【问题描述】:

我正在使用包nlinum 1.9 在边距中显示行号。

为了突出显示当前行,我设置了变量(setq nlinum-highlight-current-line t)。 它可以正常工作。

但是,如果我的框架中有多个窗口,我只想突出显示活动窗口的行。

当前行为:

左侧窗口处于活动状态,但右侧窗口的第 5 行也高亮显示。

【问题讨论】:

标签: emacs highlight line-numbers


【解决方案1】:

你可以使用 hlinum "https://github.com/tom-tan/hlinum-mode" 这是一个 linum 模式扩展,用于突出显示当前行号。 只需将这 2 行添加到您的 .emacs 中

(require 'hlinum)
(hlinum-activate)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-07-29
    • 2020-10-30
    • 1970-01-01
    • 1970-01-01
    • 2012-06-26
    • 1970-01-01
    • 1970-01-01
    • 2020-07-24
    相关资源
    最近更新 更多