我开始将Emacs用于Python,并且正在使用此软件包:
https://github.com/gabrielelanaro/emacs-for-python
安装后,我看到以下内容:
当前行下方有一条白线(如下划线)。
如何删除这条白线。这很烦人。
要查看特定缓冲区中处于活动状态的模式,请键入C-h m
-这是的快捷方式M-x describe-mode
。如果hl-line-mode
启用,则读数将类似于:Enabled minor modes: . . . Hl-Line . . .
。
看起来像是hl-line-mode
处于活动状态,并且hl-line
颜色设置为:underline t
。在您引用的链接的第一页上的说明中,其内容如下:
Line highlighting
You may want to enable this feature with the color you prefer,
to do so, drop one of the following lines in your .emacs
(global-hl-line-mode t) ;; To enable
(set-face-background 'hl-line "black") ;; change with the color that you like
;; for a list of colors:
;; http://raebear.net/comp/emacscolors.html
hl-line-mode
也可以使用模式挂钩在本地和/或仅在特定的主要模式下启用-启用外观(hl-line-mode 1)
和禁用外观(hl-line-mode -1)
。
如果hl-line-mode
在所有主要模式下都处于活动状态,则您正在寻找(global-hl-line-mode t)
。如果hl-line-mode
仅在特定的主要模式下处于活动状态,则您正在寻找(hl-line-mode 1)
。无论哪种情况,都只需删除或注释掉该行代码即可。
也可以全局启用次要模式,但可以使用模式挂钩针对特定的主要模式将其关闭。在这种情况下,全局设置将放置在.emacs
文件中,并使用模式挂钩将其关闭:(hl-line-mode -1)
。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句