6

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?

Drew
  • 75,699
  • 9
  • 109
  • 225

1 Answers1

1

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

Stefan
  • 26,154
  • 3
  • 46
  • 84