[slime-devel] Re: per-slime-dialect slime-connected-hook implementation

Samium Gromoff _deepfire at feelingofgreen.ru
Wed Dec 6 12:37:28 UTC 2006


At Tue, 05 Dec 2006 15:38:32 +0100,
Helmut Eller wrote:
> 
> * _deepfire at feelingofgreen.ru [2006-11-29 05:24+0100] writes:
> 
> > The following snippet adds support for per-slime-dialect hooks
> > to be called after the connection is established.

[snip]

> define-slime-dialect is semi obsolete.  slime-start in combination
> with slime-lisp-implementations should be used instead.
> 
> I added a :init-function arg to slime-start which can be used like
> your hooks.  Your examples can now be achieved with something like
> this:
> 
> (setq slime-lisp-implementations
>       '((foo ("sbcl") :init-function (lambda ()
>                                        (cd "/foo/project/path/")
>                                        (slime-load-file "load-foo.lisp")))))
> 
> or with a simple function like:
> 
> (defun bar ()
>   (interactive)
>   ;; ... code for pre-hook, if you need that
>   (slime-start :program "sbcl" :init-function (lambda () ...)))

Very nice, thanks!

> Helmut.

regards, Samium Gromoff



More information about the slime-devel mailing list