Sure, you can use C-u M-x slime instead of just M-x slime to have SLIME ask you for the name of the Lisp executable to be launched, with whatever is your default already filled in.
还有一个slime-lisp-implementations
我这样配置的变量:
(setq slime-lisp-implementations
`((clojure ,(swank-clojure-cmd) :init swank-clojure-init)
(sbcl ("sbcl") :coding-system utf-8-unix)))
我不得不说,我只是不记得这对我有什么作用了(如果它确实有作用的话)......输入C-h v slime-lisp-implementations
大致了解它应该做什么。我似乎必须输入sbcl
如果我想开始的话,这对我来说没问题,因为我的 SLIME 中 Clojure 与 SBCL 的比率很高。
Update:
I have just rediscovered M-- M-x slime (that first key is meta-minus for a negative argument), which prompts for one of the names of Lisp implementations in slime-lisp-implementations
(with tab completion) and then starts the required Lisp. With the above example config, M-- M-x slime sbcl starts SBCL.
(我发现这很有用,主要是因为它允许配置更复杂的命令来启动 Lisp——例如(sbcl-options ("sbcl" "--an-option" "--another-option") ...)
, (sbcl-clbuild ("/path/to/clbuild" "lisp") ...)
——并指称他们的名字。)