elm layer docs: Adds note about indentation

Indentation in the elm layer was confusing to me at first so I thought it would be a good idea to add a note.  I stole the section from elm-modes docs: https://github.com/jcollard/elm-mode#indentation
This commit is contained in:
Josh Greenwood 2017-01-15 23:26:05 -05:00 committed by syl20bnr
parent 23ea887107
commit 02d383255a
1 changed files with 9 additions and 0 deletions

View File

@ -16,6 +16,7 @@
- [[#compilation][Compilation]]
- [[#reactor][Reactor]]
- [[#sort-imports-on-save][Sort imports on save]]
- [[#indentation][Indentation]]
- [[#key-bindings][Key bindings]]
- [[#elm-make][elm-make]]
- [[#elm-repl][elm-repl]]
@ -144,6 +145,14 @@ every save.
(elm :variables elm-sort-imports-on-save t)
#+END_SRC
** Indentation
elm-mode indentation is based on cycling: every time you insert a new line there
will be one or more indentation levels available for you to choose from. The
exact number is printed in the minibuffer either as Sole indentation or Indent
cycle (n)... where n is the number of available indentations to choose from. If
the automatic indentation level was not the one you expected simply hit TAB to
cycle through the list (note that hitting any other key will cancel the cycle).
* Key bindings
** elm-make