使用Emacs入门工具包时,在Emacs中禁用hl-line? [英] Disable hl-line in Emacs when using Emacs Starter Kit?

查看:154
本文介绍了使用Emacs入门工具包时,在Emacs中禁用hl-line?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个问题会导致我的生产力下降。



Emacs入门套件自动启用hl-line,突出显示当前行。



我已经尝试设置(global-hl-line-mode nil)(hl-line-mode nil)并添加到模式钩子如clojure-mode-hook,但它仍然显示。 / p>

我需要哪些elisp才能停用此功能?

解决方案

hl -line-mode由starter-kit-defuns.el中的以下行开启:

  -hook'turn-on-hl-line-mode)

您可以注释掉该行,或者如果您不想触摸入门工具包文件,可以将以下内容放在〜/ .emacs.d / {username} .el下的个人init文件中:

 (remove-hook'coding-hook'turn-on-hl-line-mode)


This problem is killing my productivity.

The Emacs Starter Kit automatically enables hl-line, which highlights the current line. It makes me unable to see the highlighting on the current line.

I've tried setting (global-hl-line-mode nil) and (hl-line-mode nil) globally and added to the mode hooks such as clojure-mode-hook, but it still shows up.

What elisp do I need to disable this feature?

解决方案

hl-line-mode is turned on by the following line in starter-kit-defuns.el:

(add-hook 'coding-hook 'turn-on-hl-line-mode)

You can either comment out that line, or if you'd rather not touch the starter kit files, you can put the following in your personal init file at ~/.emacs.d/{username}.el:

(remove-hook 'coding-hook 'turn-on-hl-line-mode)

这篇关于使用Emacs入门工具包时,在Emacs中禁用hl-line?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆