简体   繁体   English

如何禁用Emacs elpy垂直引导线进行缩进?

[英]How to Disable Emacs elpy Vertical Guide Lines for Indentation?

I am setting Emacs for python development. 我正在为Python开发设置Emacs。

So I installed elpy. 所以我安装了elpy。

But I do not like vertical guide lines for indentation. 但我不喜欢缩进的垂直引导线。

How can I disable it or change its color? 如何禁用或更改颜色?

在此输入图像描述

You can disable highlight-indentation-mode for elpy-mode , by adding the following code to your emacs initialization. 您可以通过在emacs初始化中添加以下代码来禁用elpy-mode highlight-indentation-mode

(add-hook 'elpy-mode-hook (lambda () (highlight-indentation-mode -1)))

EDIT: changed nil to -1 编辑:将nil更改为-1

Source 资源

Mx customize-face Mx custom-face

In the minibuffer enter: highlight-indentation-face 在迷你缓冲区输入:highlight-indentation-face

Now you can disable or change as you see fit. 现在您可以根据需要禁用或更改。

Alternatively, place the cursor into any of the highlighted indentation bars then 或者,将光标放入任何突出显示的缩进栏中

Mx customize-face Mx custom-face

The argument in the minibuffer should default to the proper value 迷你缓冲区中的参数应默认为正确的值

您可以自定义变量elpy-modules以禁用“显示缩进标记”模块。

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

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