Previous: , Up: Fortran Indent   [Contents][Index]


21.13.2.4 Variables for Fortran Indentation

Several additional variables control how Fortran indentation works.

fortran-do-indent

Extra indentation within each level of ‘do’ statement (the default is 3).

fortran-if-indent

Extra indentation within each level of ‘if’ statement (the default is 3).

fortran-continuation-indent

Extra indentation for bodies of continuation lines (the default is 5).

fortran-check-all-num-for-matching-do

If this is nil, indentation assumes that each ‘do’ statement ends on a ‘continue’ statement. Therefore, when computing indentation for a statement other than ‘continue’, it can save time by not checking for a ‘do’ statement ending there. If this is non-nil, indenting any numbered statement must check for a ‘do’ that ends there. The default is nil.

fortran-minimum-statement-indent

Minimum indentation for Fortran statements. For standard Fortran, this is 6. Statement bodies are always indented at least this much.