Next: Keyboard Macros Up: Modes Previous: C Mode Contents

## Fortran Mode

Fortran Mode is written entirely in S-Lang and is designed to facilitate the writing of Fortran programs. It features automatic indentation of Fortran code as well as automatic placement of Fortran statement Labels.

In this mode, the keys -9 are bound to a function `for_elebel` which does the following:

1. Inserts the calling character (0-9) into the buffer.

2. If the character is preceded by only other digit characters, it assumes the character is for a label and moves it to the appropriate position.

3. Reindents the line.

This function is very similar to the one Emacs uses for labels.