Code Indentation
----------------
Like all Emacs programming modes, IDLWAVE performs code indentation.
The <TAB> key indents the current line relative to context. <LFD>
insert a newline and indents the new line. The indentation is governed
by a number of variables.
To re-indent a larger portion of code (e.g. when working with
foreign code written with different conventions), use `M-C-\'
(`indent-region') after marking the relevant code. Useful marking
commands are `C-x h' (the entire file) or `M-C-h' (the current
subprogram). Note:Actions, for information how to impose additional
formatting conventions on foreign code.
- User Option: idlwave-main-block-indent (`0')
Extra indentation for the main block of code. That is the block
between the FUNCTION/PRO statement and the END statement for that
program unit.
- User Option: idlwave-block-indent (`5')
Extra indentation applied to block lines. If you change this, you
probably also want to change `idlwave-end-offset'.
- User Option: idlwave-end-offset (`-4')
Extra indentation applied to block END lines. A value equal to
negative `idlwave-block-indent' will make END lines line up with
the block BEGIN lines.
- User Option: idlwave-continuation-indent (`2')
Extra indentation applied to continuation lines and inside
unbalanced parenthesis.