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?
Emacs has a strange default behavior when backspacing tabs. Instead of backspacing the whole tab, it backspaces the tab one space at a time. You can fix that in the following way. The Smart-tabs-mode package helps Emacs indent with tabs and align with spaces in various languages.
If you’d like to also activate these functions on the fly, using M-x, you can use the (interactive) function in Emacs Lisp. Here’s the documentation. First thing we do in the enable-tabs function is set the TAB key to tab-to-tab-stop. In my opinion, it is a more sane default. When you press the tab key, it will indent one tab as expected.
All you really need to know about it is that 124 is the ascii ID of the pipe character (“|”). You can view a list of ascii character IDs here. Emacs has a strange default behavior when backspacing tabs. Instead of backspacing the whole tab, it backspaces the tab one space at a time.
I set the text color of our pipe character to be #636363 which is a nice color if you’re using a dark-themed Emacs theme. If you’re using a light theme in Emacs, you’ll want a lighter color such as #c1c1c1.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With