使用 emacs-slime 加载外部
我想在我的 Emacs 23.2.1 上安装 slime。由于Mx slime
启动失败,我修改了~/.emacs文件。
(setq inferior-lisp-program "/usr/bin/sbcl")
(add-to-list 'load-path "/usr/share/emacs/site-lisp/slime/")
(require 'slime)
(slime-setup)
当然,这不适用于 ~/.emacs 文件第二行中的 slime 路径,应该是 /usr/share/common-lisp/source/swank
。但是,当我更改此目录后,错误仍然存在。它是这样说的:
无法加载“/usr/share/emacs/site-lisp/slime/swank-loader.lisp”:文件确实 不存在。
为什么这个外部负载会保留以及如何使这些事情正确?
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:
Couldn't load "/usr/share/emacs/site-lisp/slime/swank-loader.lisp": file does
not exist.
Why would this load external remain and how to make these things right?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
此帖子位于 LispForum 建议将以下行添加到您的 .emacs:
错误的解释:
编辑:好的,您使用什么平台、Emacs 和 Slime 版本?我在 Ubuntu 上使用 Emacs 24。我使用 apt-get 安装了 slime。我看到了与您相同的错误:
我使用 这个答案:
我必须将
slime-backend
的值自定义为/usr/share/common-lisp/source/slime/swank-loader.lisp
才能获得Mx slime
去工作。This post on LispForum suggests adding the following line to your .emacs:
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:
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.在 debian sid 上周一。 1 月 27 日 22:18 CET - 我必须安装 cl-swank
On debian sid Mon. Jan. 27 22:18 CET - I had to install cl-swank
这个错误发生在我身上,它归结为 /etc/emacs/site-start.d 有一个 50slime 文件,没有安装 cl-swank 和 slime 包(在 debian 变体上)
在我的情况下,我已经删除了它们,这样我就可以有更新的史莱姆,所以我刚刚删除了该文件。另一种方法是仅安装软件包(“apt-get install cl-swank slime”)并使用打包版本。
希望对某人有帮助。
This error occurred for me and it boiled down to /etc/emacs/site-start.d having a 50slime file without the cl-swank and slime packages being installed (on a debian variant)
In my case I had removed them so I could have a more current slime, so I just deleted the file. The other way is to just install the packages ("apt-get install cl-swank slime") and use the packaged versions.
Hope that helps someone.
我认为你应该使用 Quicklisp ,它是 Common Lisp 的软件包安装程序。它有一个 slime 包,通常会更新到最新版本。 Quicklisp 网站提供了配置 emacs 和 slime 所需的所有说明。
I think you should use Quicklisp wich is a package installer for Common Lisp. It has a slime package that is usually updated to the most recent version. The Quicklisp web site has all the instructions you'll need to configure emacs and slime.