简体   繁体   中英

How to Disable Emacs elpy Vertical Guide Lines for Indentation?

I am setting Emacs for python development.

So I installed 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.

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

EDIT: changed nil to -1

Source

Mx customize-face

In the minibuffer enter: 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

The argument in the minibuffer should default to the proper value

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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