[slime-devel] Re: loop macro indentation

Helmut Eller heller at common-lisp.net
Sun Apr 27 14:49:20 UTC 2008

* Thomas Christensen [2008-04-27 16:19+0200] writes:

> Hi
> I want to express my gratitude for the excellent mode.  I have discovered a
> tiny annoyance though.  It is regarding indentation of the loop construct
> in slime-mode.

Indentation is actually done by lisp-mode and not by slime-mode.
SLIME adds some hints for macros which have &body in their arguments
(by setting the common-lisp-indent-function property on those
symbols).  We don't override existing doesn't properties.

For LOOP I have this in my .emacs:
(setq lisp-simple-loop-indentation 1)
(setq lisp-loop-keyword-indentation 6)
(setq lisp-loop-forms-indentation 6)

I'm quite happy with those settings as they work good enough for the
simple cases and stop me from using too complicated LOOPism.

In contrib/slime-indentation.el you can find a more ambitious
indentation function which should also properly indent WHEN and IF
loop clauses.  This is not loaded by default.


More information about the slime-devel mailing list