If you’d like to use emacs on one computer (i.e. your windows box at home) and
use SLIME to connect to a
Common Lisp process on a remote computer (i.e. your server at work), here’s how
I do it.
First, create a startup file for your favorite Lisp implementation.
lisp startup file
Now edit your ~/.emacs so that you’ve got something like the following in it:
Now, load up the startup file you created on your host Lisp to start
the swank server. Then, create an ssh tunnel, i.e. ssh -L
Now you can M-x my-box-slime to connect through your SSH
tunnel to your work box; SLIME’s M-. command will also
correctly open up the file containing the defun of whatever’s under
your cursor, and C-c C-k works correctly, etc. If you want
to open up some lisp file, M-x my-box-homedir is a convenient
For Windows users
If you’re using Windows and want to also use a multi-hop tramp method (i.e. ssh
into your work firewall, and then ssh from there to your server at work), be
aware that tramp 2.1.4 and prior has a bug; it’s fixed in CVS and probably
2.1.5, which is not out yet. Information and a patch is available here.
You’ll also want to use plink from the PuTTY distribution in lieu of
ssh. If you’re doing multi-hop tramp, though, you need to use plink for the
first hop (Windows box -> “firewall” box) and ssh thereafter (“firewall” ->