Variables for Fortran Indentation
Several additional variables control how Fortran indentation works:
- fortran-do-indent
- Extra indentation within each level of
dostatement (default 3). - fortran-if-indent
- Extra indentation within each level of
if,select case, orwherestatements (default 3). - fortran-structure-indent
- Extra indentation within each level of
structure,union,map, orinterfacestatements (default 3). - fortran-continuation-indent
- Extra indentation for bodies of continuation lines (default 5).
- fortran-check-all-num-for-matching-do
- In Fortran 77, a numbered
dostatement is terminated by any statement with a matching line number. It is common (but not compulsory) to use acontinuestatement for this purpose. If this variable has a non-nilvalue, indenting any numbered statement must check for adothat ends there. If you always enddostatements with acontinueline (or if you use the more modernenddo), then you can speed up indentation by setting this variable tonil(the default). - fortran-blink-matching-if
- If this is
t, indenting anendif(orenddo) statement moves the cursor momentarily to the matchingif(ordo) statement to show where it is. The default isnil. - fortran-minimum-statement-indent-fixed
- Minimum indentation for Fortran statements when using fixed form continuation line style. Statement bodies are never indented by less than this. The default is 6.
- fortran-minimum-statement-indent-tab
- Minimum indentation for Fortran statements for tab format continuation line style. Statement bodies are never indented by less than this. The default is 8.
The following section describes the variables controlling the indentation of comments.