jcollard / elm-mode

Elm mode for emacs
GNU General Public License v3.0
375 stars 67 forks source link

Disable electric-indentation #21

Closed crodjer closed 9 years ago

crodjer commented 9 years ago

Elm is not generally suitable for electric indentation, since there is no unambiguously correct indent level for any given line.

Ref: #20

jcollard commented 9 years ago

Awesome! Thanks!

srid commented 9 years ago

Will this also resolve #19?

If so, any chance of cutting a release @jcollard (so it can be used with spacemacs). Thanks.

srid commented 9 years ago

Oh, never mind, I see that this change already exists in ELPA release (and doesn't resolve #19).

crodjer commented 9 years ago

@srid To confirm if this will resolve your issue as well, you can try disabling electric-indent mode in your emacs.

(electric-indent-mode -1)
rhaps0dy commented 9 years ago

Hello, I have this issue too.

I disabled electric-indent-mode and it still happens.

crodjer commented 9 years ago

As @srid said, this looks like a separate issue. The electric-indent-mode issue was about you leaving (by pressing return). #19 on the other hand is for general indentation.