Use ocp-indent to indent your OCaml code in Atom.
Each line is indented when a newline is inserted. Manual indenting can be done with the following commands.
||Indent lines containing selection or cursor||ctrl-alt-i|
The recommended way to configure ocp-indent is with a
.ocp-indent file in the project directory. See
ocp-indent --help for more information. Command line arguments can be configured too if desired.
apm install language-ocaml ocaml-merlinopam install ocp-indent
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.