How to Disable Emacs elpy Vertical Guide Lines for Indentation?

2.5k Views Asked by At

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?

enter image description here

3

There are 3 best solutions below

2
On BEST ANSWER

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

0
On

M-x 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

M-x customize-face

The argument in the minibuffer should default to the proper value

3
On

You can customize the variable elpy-modules to disable the "display indentation markers" module.