GNU Emacs Manual. Node: Fortran

PREVC Modes UPPrograms NEXTAsm Mode

20.16: Fortran Mode

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 Hooks).

  • Motion Moving point by statements or subprograms.
  • Indent Indentation commands for Fortran.
  • Comments Inserting and aligning comments.
  • Autofill Auto fill minor mode for Fortran.
  • Columns Measuring columns for valid Fortran.
  • Abbrev Built-in abbrevs for Fortran keywords.
  • Misc Other Fortran mode features.
  • PREVC Modes UPPrograms NEXTAsm Mode