[slime-devel] Implementation Specific Configuration
Helmut Eller
heller at common-lisp.net
Sat Nov 22 12:41:47 UTC 2008
* Volkan YAZICI [2008-11-07 20:17+0100] writes:
> Hi,
>
> How can set local environment variables in slime-mode specific to each
> lisp implementation?
Well, we have slime-def-connection-var, but those variables are
per-connection not per-implementation. See the docstring for details.
>
> I tried to use something similar to below code snippet.
>
> (defun custom-slime-mode ()
> (interactive)
> ...
> ;; Implementation specific symbol completion.
> (setq
> slime-complete-symbol-function
> (case slime-lisp-implementation-name
> ((x y z) 'slime-simple-complete-symbol)
> (t 'slime-fuzzy-complete-symbol))))
>
> (add-to-list 'slime-mode-hook 'custom-slime-mode)
>
> But emacs complains that
>
> (void-variable slime-lisp-implementation-name)
>
> How do you define implementation specific local environment variables?
slime-lisp-implementation-name is a function not a variable. You
need to write (slime-lisp-implementation-name).
Helmut.
More information about the slime-devel
mailing list