In Elm, we have a single formatting tool which is used by all plugins, known as elm-format: https://github.com/avh4/elm-format
You may not have installed it yet. Check out the README in that repo and it'll tell you what to do. On 30 June 2017 at 23:49, Raoul Duke <[email protected]> wrote: > hi, > > One use case I have in all programming systems is to auto reformat a whole > file buffer (let alone a whole directory tree of code). I tried doing that > in emacs elm-mode but it seems that it doesn't quite know enough to do what > I am hoping for. Is there any emacs mode for elm that knows what to do > automagically? > > I also just tried it in atom, with language-elm, and it doesn't seem to > know either. Is there any good working editor system that can do it? Is > there something about elm's BNF-or-whatever that prevents editors from > being able to do it? (Does it support my long held believe that whitespace > sensitive syntax being a bad idea when all concerns are weighed? :-) > > (I did try to get set up with lighttable but that was sort of a miserable > experience for me to date, so i haven't gotten to the point of trying auto > reformat there.) > > thank you! > > -- > You received this message because you are subscribed to the Google Groups > "Elm Discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
