Emacs, Tuareg + Merlin and code indentation

I decided to try Emacs again and I got the auto-completion working via Tuareg and Merlin but the code indentation is not lining up… Any suggestions?

1 Like

Is it normal for Emacs to have lines starting towards the middle and then lining up after you hit enter?

1 Like

This happens with me and I find it very annoying. I would appreciate any help on changing this behavior.

Note sure I exactly understand your problem but for indenting ocaml code I suggest you to use ocp-indent.

2 Likes

Didn’t realize ocp-indent had Emacs integration. I’ll try that out.

Placing a valid path to ocp-indent.el in my .emacs file produced much better results.