[slime-devel] Indentation modes

Tobias C. Rittweiler tcr at freebits.de
Sat Aug 8 18:00:05 UTC 2009


jcm at sdf.lonestar.org writes:

> > If you load code into the image, Swank transmits indentation information
> > to Emacs based on a macro's arglist.
>
> So 'correct' indentation depends on editing code from within a running
> image?

Yes.

Alternatively, you can manually add the necessary information for Emacs
by putting the respective symbol and its indentation spec on the plist
of `common-lisp-indent-function' in your .emacs, or in the local
variables list in your .lisp files. See 13.7 in the Elisp manual for a
description of the indentation specs.

Or hack up some elisp to look for something like DECLAIM-INDENTATION
whenever you open a .lisp file and retrieve the indentation spec from
that.

  -T.





More information about the slime-devel mailing list