Next: Syntactic Conventions, Previous: Continuation Lines, Up: Fortran Indentation [Contents][Index]
28.14.2.3 Line NumbersIf a number is the first non-whitespace in the line, Fortran indentation assumes it is a line number and moves it to columns 0 through 4. (Columns always count from 0 in Emacs, but setting column-number-indicator-zero-based
to nil
can change that, see Optional Mode Line Features.)
Line numbers of four digits or less are normally indented one space. The variable fortran-line-number-indent
controls this; it specifies the maximum indentation a line number can have. The default value of the variable is 1. Fortran mode tries to prevent line number digits passing column 4, reducing the indentation below the specified maximum if necessary. If fortran-line-number-indent
has the value 5, line numbers are right-justified to end in column 4.
Simply inserting a line number is enough to indent it according to these rules. As each digit is inserted, the indentation is recomputed. To turn off this feature, set the variable fortran-electric-line-number
to nil
.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4