Hi,
How can set local environment variables in slime-mode specific to each lisp implementation?
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?
Regards.
On Fri, 07 Nov 2008, Volkan YAZICI yazicivo@ttmail.com writes:
How can set local environment variables in slime-mode specific to each lisp implementation?
Is it ok to conclude that such a thing is not possible?
Regards.
* 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.