[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

17. Editing Modula-2 Code

This mode is used for editing Modula-2 code. It is NOT automatically invoked for any particular file extension. To invoke this mode while editing a file, type M-x modula-2-mode.

The mode provides convenient abbrevs for Modula-2 keywords, knows about the standard layout rules, and supports a native compile command.

All control constructs of Modula-2 can be reached by typing C-c followed by the first character of the construct.

The following key mappings are defined:

C-c b begin C-c c case
C-c d definition C-c e else
C-c f for C-c h header
C-c i if C-c m module
C-c l loop C-c o or
C-c p procedure Control-c Control-w with
C-c r record C-c s stdio
C-c t type C-c u until
C-c v var C-c w while
C-c x export C-c y import
C-c { begin-comment C-c } end-comment
C-c C-z suspend Emacs C-c C-t toggle
C-c C-c compile M-x m2-next-error next-error
C-c C-l link

Following are some important variables:

controls the number of spaces for each indentation.
holds the command to compile a Modula-2 program.
holds the command to link a Modula-2 program.

To configure this package, type:

  M-x customize-group RET modula2 RET

17.1 About Modula-2  

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

17.1 About Modula-2

Modula-2 is a programming language developed by Niklaus Wirth at ETH in Zurich, Switzerland in the late 70's. Wirth also developed Algol-W, Pascal, Modula, and Oberon.

Modula-2 corrects some of the deficiencies of Pascal. It is suitable for learning programming, for large projects written and maintained in the fashion of professional software engineers, and for real time embedded systems. Modula-2 is small, expressive, easy to learn and to read.

[ << ] [ >> ]           [Top] [Contents] [Index] [ ? ]

This document was generated by XEmacs Webmaster on October, 2 2007 using texi2html