Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Disable Emacs elpy Vertical Guide Lines for Indentation?

Tags:

emacs

elpy

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

like image 965
ghchoi Avatar asked Jul 20 '17 12:07

ghchoi


People also ask

How do I backspace tabs in Emacs?

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.

How to enable tabs in Emacs Lisp using m-x?

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.

What is a pipe character 124 in Emacs?

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.

What color should pipe text be in Emacs?

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.


1 Answers

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

like image 182
Tim Miller Avatar answered Oct 14 '22 03:10

Tim Miller