I was trying to install the SLIME. I downloaded the zipped package and according to the README file, I had to put this piece of code in the .emacs file:
(add-to-list 'load-path "~/hacking/lisp/slime/") ; your SLIME directory
(setq inferior-lisp-program "/opt/sbcl/bin/sbcl") ; your Lisp system
(require 'slime)
(slime-setup)
The slime directory is straightforward .What about the Lisp system. How do I find it?
Some Linuxes come with CMUCL preinstalled, but since you seem to want to use SBCL, you would need to install it.
In terminal, or in Emacs M-x
shell
. If you are using Debian-like distro, you can use apt-get or aptitude with the following:or
on RHEL-like distro:
After SBCL is installed, you can set
inferior-lisp-program
to "sbcl".Also, I'd advise to install SLIME through quicklisp-slime-helper
You would need to install some Lisp you like (let it be SBCL for this purpose, as described above), then, in the same shell do this:
(Suppose you are on a Debian-like Linux)
wait until you see Lisp shell prompt,
now you are back in the regular shell. Launch Emacs, if not open yet. C-f x
~/.emacs
. Add the lines below to it (instead of what you posted above):Or replace "sbcl" with the Lisp implementation you installed.
Look into Quicklisp documentation for more information. You will find that you will be using Quicklisp later anyway, so it's useful you get it all in one place from the start.