dcl-calc-command-indent-hang

dcl-calc-command-indent-hang is a compiled Lisp function in `dcl-mode.el'.

(dcl-calc-command-indent-hang INDENT-TYPE CUR-INDENT EXTRA-INDENT LAST-POINT THIS-POINT)

Indent lines as default, but indent THEN, ELSE and ENDIF extra.

Set dcl-calc-command-indent-function to this function to customize
indentation of command lines.

This function supports a formatting style like this:

$ if cond
$ then
$ xxx
$ endif
$ xxx

If you use this function you will probably want to add "then" to
dcl-electric-reindent-regexps and define the key "n" as
dcl-electric-character.