The indentation used for Lisp forms can be modified to suit the preferences of the user.
The default indentations can be found in the file
in the LispWorks library directory. If you want to alter your personal Lisp indentation, put the modifying code in your
Modifies the indentation, in Lisp Mode, for the text following an instance of form-name . The arguments no-of-args , standard and special should all be integers. The first no-of-args forms following the form-name become indented special spaces if they are on a new line. All remaining forms within the scope of the form-name become indented standard spaces.
For example, the default indentation for
in Lisp code is established by:
(editor:setup-indent "if" 2 2 4)
This determines that the first 2 forms after the
(that is, the
clauses) get indented 4 spaces relative to the
, and any further forms (here, just an
clause) are indented by 2 spaces.