load external with emacs-slime

回眸只為那壹抹淺笑 提交于 2019-12-06 10:42:30
Luke Girvin

This post on LispForum suggests adding the following line to your .emacs:

(slime-setup '(slime-fancy))

The explanation for the error:

What you are seeing is an effect of splitting REPL into a contrib. No contribs are loaded by default, which is a bit unfortunate, since current bare slime has pretty minimal functionality.

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:

The next thing to try is M-x customize-variable slime-backend and setting that to the absolute path of swank-loader.lisp. I think that will fix it for sure, but I am not sure why it doesn't work to begin with.

I had to customize the value of slime-backend to /usr/share/common-lisp/source/slime/swank-loader.lisp to get M-x slime to work.

On debian sid Mon. Jan. 27 22:18 CET - I had to install cl-swank

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.

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!