- Install Recent Version of Nodejs by downloading and running the installer found at https://nodejs.org/en/ or use the Node Version Manager found at https://github.com/creationix/nvm
- Install Elm by keying the command
npm install -g elm
- Install the atom editor located at https://atom.io/
- Install the language-elm using the atom package manager (apm), by keying the command
apm install language-elm
- Install elm-oracle by keying
npm install -g elm-oracle
- Determine the path where the
elm-oracle
command was installed by keyingwhich elm-oracle
on mac and unix orwhere.exe elm-oracle
on windows. Copy the entire path and file name to the clipboard, for use in the next step - Open up Atom, then open up the preferences/settings by pressing
CMD + ,
or via the menu. Clickpackages
then filter byelm
. Find the language-elm package and click thesettings
button. Set theelm-oracle
setting, by pasting the value we copied in the prior step. - Download the current version of elm-format found at https://github.com/avh4/elm-format
- Unzip the downloaded file and move the
elm-format
executable to a location in your PATH variable, such asmv ~/Downloads/elm-format /usr/local/bin/elm-format
- Install the
elm-format
Atom Package (Note: different from elm-format command), by keyingapm install elm-format
- Start Atom, Open up Settings
CMD + ,
, clickPackages
, filter byelm
, then click on theelm-format
package'ssettings
button. Set theelm-format
command path setting and veryify theformat on save
checkbox is checked. - Install atom linter by keying
apm install linter
. - Install the elm linter by keying
apm install linter-elm-make
- Locate and copy the path and file for the
elm-make
command by keying the commandwhich elm-make
for mac orwhere.exe elm-make
on windows. (You may need to close atom and reopen it first. Say yes when it asks to install dependencies.) - Open the
linter-elm-make
settings page in atom as you did in steps 7 and 13, then click the settings button next tolinter-elm-make
and then set theelm-make
setting to the copied value from the prior step.
Your atom / elm dev environment should be good to go!