I'm using Emacs to write ocaml programs, and the automatic indentation works fine : suppose I write
if in the middle of a line, then skip a line and write
then ; the keyword
then is automatically aligned with my
But if I later decide to add some code before the
if, and the position of the
if thus changes,
then remains aligned with the previous position of the
if until I manually add (and immediately remove) a lineskip on the line that has my
then so that the indentation is recalculated.
Is there a way to ask Emacs to reindent all lines in my document without having to add-and-remove lineskips everywhere to force Emacs to recalculate the correct indentation line by line?