简体   繁体   English

Emacs Linum Highlighing

[英]Emacs linum highlighing

I've recently moved to emacs and have a pretty simple question: when I'm on an specific line, linum changes it's foreground and background color. 我最近移到了emacs,并有一个非常简单的问题:当我在特定的行上时,linum会更改其前景色和背景色。 How can I disable this? 如何禁用此功能? What I'm trying to disable is the yellow foreground and grey background. 我要禁用的是黄色前景和灰色背景。 I just get slightly distracted with it. 我只是有点分心。 emacs的

You seem to have linum-relative installed, it uses the face linum-relative-current-face to highlight current line, you can customize it so that it is less distractive. 您似乎已安装linum-relative ,它使用face linum-relative-current-face突出显示当前行,可以对其进行自定义,以减少干扰。 Here is an example of disabling the highlight completely 这是一个完全禁用突出显示的示例

(set-face-attribute 'linum-relative-current-face nil :background nil :foreground nil :weight 'normal)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM