问题描述
我想在我的Emacs 23.2.1上安装粘液。由于 Mx slime
没有成功启动它,我修改了〜/ .emacs文件。$ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ /)
(require'slime)
(slime-setup)
当然这不适用于〜/ .emacs文件的第二行中的粘贴路径应该是 / usr / share / common-lisp / source / swank
。但是,在更改此目录后,仍然会出现错误。它像这样:
为什么这个外部加载仍然存在,如何使这些事情正确? p>
这个上的rel =nofollow noreferrer>帖子建议您添加以下行。 emacs:
(slime-setup'(slime-fancy))
pre>
错误的解释:
编辑:好的,你正在使用什么平台,Emacs和Slime版本?我在Ubuntu上使用Emacs 24。我使用apt-get安装了粘液。我看到与您相同的错误:
无法加载/ usr / share / emacs / site-lisp / /swank-loader.lisp:文件不存在。
我使用:
我不得不将
slime-backend
的值自定义为/usr/share/common-lisp/source/slime/swank-loader.lisp
获取Mx粘液
工作。I'd like to install slime on my Emacs 23.2.1. Since
M-x slime
doesn't succeed in start it, I modified the ~/.emacs file.(setq inferior-lisp-program "/usr/bin/sbcl") (add-to-list 'load-path "/usr/share/emacs/site-lisp/slime/") (require 'slime) (slime-setup)
Of course this doesn't work for the slime path in the second line of ~/.emacs file should be
/usr/share/common-lisp/source/swank
instead. However, after I changed this directory, the error remains. It says like this:Why would this load external remain and how to make these things right?
解决方案This post on LispForum suggests adding the following line to your .emacs:
(slime-setup '(slime-fancy))
The explanation for the error:
Edit: OK, what platform, Emacs, and Slime version are you using? I'm using Emacs 24 on Ubuntu. I installed slime using apt-get. I was seeing the same error as you:
Couldn't load "/usr/share/emacs/site-lisp/slime/swank-loader.lisp": file does not exist.
I fixed it using the method suggested in this answer:
I had to customize the value of
slime-backend
to/usr/share/common-lisp/source/slime/swank-loader.lisp
to getM-x slime
to work.这篇关于用emacs-slime加载外部的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!