我犯了使用MacPorts更新现有端口的错误-现在,史莱姆和swank-clojure不再起作用。我在emacs中调用clojure-jack-in时收到以下消息:

Versions differ: 2011-04-16 (slime) vs. 20100404 (swank). Continue? (y or n)

输入y将显示史莱姆REPL,但是当我尝试在REPL中求值时,我又收到一条消息:
Not connected. Use `M-x slime' to start a Lisp.

这里发生了什么?

这是我的init.el文件的相关部分:
;; slime
(setq inferior-lisp-program "/opt/local/bin/sbcl")
(add-to-list 'load-path
         "/opt/local/share/emacs/site-lisp/slime"
         "/opt/local/share/emacs/site-lisp/slime/contrib")
(add-hook 'slime-repl-mode-hook
      (defun clojure-mode-slime-font-lock()
          (require 'clojure-mode)
        (let (font-lock-mode)
          (clojure-mode-font-lock-setup))))
(require 'slime)
(slime-setup '(slime-repl))
(eval-after-load "slime" '(slime-setup '(slime-fancy slime-banner)))

;; clojure
(add-to-list 'load-path
         "~/.emacs.d/elpa/clojure-mode-el"
         "~/.emacs.d/elpa/paredit-22")
(require 'clojure-mode)
(defun turn-on-paredit () (paredit-mode 1))
(add-hook 'clojure-mode-hook 'turn-on-paredit)

最佳答案

swank-clojure仅适用于粘液版本20100404:

https://github.com/technomancy/swank-clojure/issues/120#issuecomment-4862556

此时唯一的选择是降级史莱姆版本。

关于emacs - 笨拙的粘液和史莱姆在emacs中不再合作,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/9951512/

10-08 22:11