elm-community / SublimeElmLanguageSupport

Elm language syntax highlighting and tool integration for ST2/3.
https://packagecontrol.io/packages/Elm%20Language%20Support
MIT License
33 stars 12 forks source link

Allow for custom elm-format binary names #15

Closed mariusbutuc closed 7 years ago

mariusbutuc commented 7 years ago

Problem

Sometimes, the elm-format binary can have a different name. As an example, installing elm-format via homebrew exposes both elm-format-0.17 and elm-format-0.18, but no elm-format.

Solution

Provide the elm_format_binary setting in the Elm Language Support User settings that allows for the custom elm-format binary name to be declared. An example might be

    "elm_format_binary": "elm-format-0.18",

P.S.

Naming things is hard… Not married to the elm_format_binary name for such setting. If one can think of one that better conveys intent, I'd be happy to swap them. :v:

mariusbutuc commented 7 years ago

@sentience are the current changes good for a merge and release?

sentience commented 7 years ago

Thank you @mariusbutuc! Just waiting for #17 to land and then I’ll release a new version of the package.

mariusbutuc commented 7 years ago

PS: An alternative (simpler?) to this is to create a symlink:

$ ln -s /usr/local/bin/elm-format-0.18 /usr/local/bin/elm-format