Commit d3adee53 authored by Bogdan Popa's avatar Bogdan Popa

add elm-format-elm-version

Fixes #81
parent 3112ff79
......@@ -134,6 +134,10 @@ will have to install it manually.
Set or customize `elm-format-on-save` to `t` to apply `elm-format` on
the current buffer on every save.
Set or customize `elm-format-elm-version` to change which version of
Elm to format against. Valid options are `0.17` and `0.16`. The
default is `0.17`.
#### `elm-oracle`
The following functionality requires [elm-oracle][elm-oracle] to be
......
......@@ -27,6 +27,12 @@
:group 'elm-format
:type 'boolean)
(defcustom elm-format-elm-version "0.17"
"The version of Elm against which code should be formatted."
:group 'elm-format
:type 'string
:options '("0.17" "0.16"))
(defvar elm-format-command "elm-format"
"The name of the `elm-format' command.")
......@@ -50,6 +56,7 @@
nil
in-file
"--output" out-file
"--elm-version" elm-format-elm-version
"--yes"))))
(if (/= retcode 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment