[slime-devel] Re: Basic SLIME initialization that actually calls SLIME-LOAD-HOOK

Tobias C. Rittweiler tcr at freebits.de
Fri Sep 14 09:24:08 UTC 2007


Mark Evenson <mark.evenson at gmx.at> writes:

> The basic SLIME recipe in the toplevel README goes:
>
>     (add-to-list 'load-path "~/hacking/lisp/slime/")
>     (setq inferior-lisp-program "/opt/sbcl/bin/sbcl")
>     (require 'slime)
>     (slime-setup)
>
> but this will trip up anybody who tries to use the contrib modules via
> installing functions in SLIME-LOAD-HOOK, as it will never get called
> when M-x slime is invoked, at least on Emacs 22.

You have to set up the `slime-load-hook' before you require SLIME.

  -T.




More information about the slime-devel mailing list