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?
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
nil
to a negative integer -- e.g., -1
–
Belding You can customize the variable elpy-modules
to disable the "display indentation markers" module.
elpy-modules
with M-x describe-variable RET elpy-modules
(or C-h v elpy-modules
) and set it in your configuration or with customize. –
Playmate (setq elpy-modules (delq 'elpy-module-highlight-indentation elpy-modules))
–
Periphrasis 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
© 2022 - 2024 — McMap. All rights reserved.
elpy
that causes Emacs to display vertical guides. Try and figure out what minor modes are active, and then you'll know which one to disable to turn off the vertical guides. I don't know if you can easily type while inelpy
something regular such asM-x describe-mode
orC-h m
to display the minor modes. If that doesn't work, perhaps while inelpy
you can evaluate(describe-mode)
if the above doesn't work. – Belding