~theothornhill/elm-mode

elm mode for emacs
File name change
ca091d49 — Theodor Thornhill 7 days ago
Revert "Change name properly from elm-mode to elmo"
Change name properly from elm-mode to elmo

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~theothornhill/elm-mode
read/write
git@git.sr.ht:~theothornhill/elm-mode

You can also use your local clone with git send-email.

#elmo.el - Edit Elm source code in emacs

This is a simple major mode for editing Elm in emacs. It is only compatible with elm version > 0.19.

#Features

#project.el

elmo relies a lot on project.el available in newer versions of emacs. Some integrations elmo provides are:

  • Find root in a project, depends on git for now. Use git init if it cannot find root.
  • Add patterns you want to ignore to .gitignore, as usual.
  • Using project-compile, trigger elm make in root folder.
  • Ignores elm-stuff by default, so project-find-regexp shows less garbage.

Also you are free to bind project-shell, project-find-regexp, project-find-file and friends.

#Integration with Elm tooling

Binding Name
C-c C-z elm-repl
C-c C-c elm-make
C-c C-r elm-reactor

#Indentation

elmo tries to be smart about indentation. However, elm is a pretty difficult language to indent, since it is whitespace sensitive. elmo offers indentation where it is easy to determine, but, you can still adjust with tab and backtab, like in conventional editors.

#Customization

elmo provides some options for customization, however there are not too many yet.

  • elm-indent-offset: Defaults to 4.
  • elm-compile-command: Defaults to elm make src/Main.elm

#Bugs

Yes.