I am using the Spacemacs configuration files.

When I am typing code, electric-indent-mode reindents the current line whenever I press enter. This often causes the indentation to be incorrect when working in languages like Python or Haskell.

Here is an example of the problem

How can I prevent this re-indentation?

1 Answer 1


Those major modes like python-mode and haskell-mode set (or should set) electric-indent-inhibit.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.