[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Fortran mode provides special motion commands for Fortran statements and subprograms, and indentation commands that understand Fortran conventions of nesting, line numbers and continuation statements. Fortran mode has its own Auto Fill mode that breaks long lines into proper Fortran continuation lines.
Special commands for comments are provided because Fortran comments are unlike those of other languages. Built-in abbrevs optionally save typing when you insert Fortran keywords.
Use M-x fortran-mode to switch to this major mode. This command
runs the hook fortran-mode-hook
(see section AD.2.3 Hooks).
Fortan mode is meant for editing Fortran77 "fixed format" source
code. For editing the modern Fortran90 "free format" source code,
use F90 mode (f90-mode
). Emacs normally uses Fortran mode for
files with extension `.f', `.F' or `.for', and F90 mode
for the extension `.f90'. GNU Fortran supports both kinds of
format.
U.12.1 Motion Commands Moving point by statements or subprograms. U.12.2 Fortran Indentation Indentation commands for Fortran. U.12.3 Fortran Comments Inserting and aligning comments. U.12.4 Fortran Auto Fill Mode Auto fill minor mode for Fortran. U.12.5 Checking Columns in Fortran Measuring columns for valid Fortran. U.12.6 Fortran Keyword Abbrevs Built-in abbrevs for Fortran keywords.