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

Mark Evenson mark.evenson at gmx.at
Fri Sep 14 08:14:33 UTC 2007


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.

Using this

     (add-to-list 'load-path "~/hacking/lisp/slime/")
     (setq inferior-lisp-program "/opt/sbcl/bin/sbcl")
     (autoload 'slime-setup "slime.el")
     (slime-setup)

seems to actually get SLIME-LOAD-HOOK called.

Maybe the quick setup instructions should be changed?

-- 
<Mark.Evenson at gmx.at>

"[T]his is not a disentanglement from, but a progressive knotting into."




More information about the slime-devel mailing list