Closed rofrol closed 5 years ago
Hmm. The variable should still work (see https://github.com/jcollard/elm-mode/blob/25b36f0001867c2f55c4cfcd613c650ffa7ed238/elm-mode.el#L168) and it works for me locally. How do you have things set up?
The docstring for elm-format-on-save
has been updated, though the README should also get updated, yes.
This is my config https://github.com/rofrol/.emacs.d/blob/master/lisp/rofrol-elm.el
Ah, so you were previously setting elm-format-on-save
in a function called via elm-mode-hooks
. Yes, that wouldn't work now, sorry.
Right, I've updated the docs. Note that if you had written (setq elm-format-on-save t)
at the top level, ie. not within a hook function, then things would have worked as expected.
This worked for me:
Should we change this in doc: