Closed gsingh93 closed 9 years ago
Just tested this and I am not experiencing this issue.
What version of emacs are you using?
Is there anything else in the file?
I'm using Emacs 24.4.1 on Arch Linux. What I described in the issue is the only thing in the file.
I thought maybe some other minor mode I had was messing with it, so I tried starting emacs with the -q
flag to make sure all other packages weren't loaded. Then I used load-file
to load elm-mode.elc
from the elpa install directory. I get the same behavior described above.
I've been using haskell-mode in the mean time, and that mode is working fine.
Are you sure you don't have electric-indent-mode
on? That was the problem for me.
@maxsnew That was it, thanks!
Just curious though, I tried a lot of major/minor modes for different languages, and I haven't had this problem before. What exactly in the design of this mode causes a problem with electric-indent-mode
?
After installing
elm-mode
, I made a new elm file and typed:and then hit enter. The next line was automatically indented 5 spaces, when it shouldn't have been indented at all. I then typed
main =
and hit tab twice, which unindented the line to the beginning, which is what I want. I then typed out the rest of the line, hit enter, and the line was again indented to 5 spaces.This is obviously not the correct functionality. Are you experiencing this too, or is it just me?