In my code I have bindings for two reformatters that are supposed to be applied upon saving relevant code:
(add-hook 'tuareg-mode-hook (lambda () (add-hook 'before-save-hook 'ocp-indent-buffer (merlin-mode)))) (add-hook 'reason-mode-hook (lambda () (add-hook 'before-save-hook 'refmt-before-save) (merlin-mode)))
Yet for some reason my code is getting formatted weirdly at times (and not just the OCaml/ReasonML, my Emacs Lisp code can get formatted really weirdly. I'm not sure what triggers the weird formatting; usually it's after I delete something or paste something in.
I wish I had the braincells to save the message log so I could post it here but I forgot to. It happens every few hours; if it happens again I will post my messages buffer here.