Next: , Up: Connecting to a remote lisp



8.1.1 Setting up the lisp image

When you want to load swank without gonig through the normal, Emacs based, process just load the swank-loader.lisp file. Just execute

     (load "/path/to/swank-loader.lisp")

inside a running lisp image1. Now all we need to do is startup our swank server. This example assumes we're using the default settings, if you need to do anything particular (like be able to reconnect to swank after you're done, look into swank:create-server's other arguments).

     (swank:create-server)

Since we're going to be tunneling our connection via ssh2 and we'll only have on port open we want to tell swank to not use an extra connection for output:

     (setf swank:*use-dedicated-output-stream* nil)

Footnotes

[1] SLIME also provides an ASDF system definiton which does the same thing

[2] there is a way to connect without an ssh tunnel, but it has the side-effect of giving the entire world access to your lisp image, se we're not gonig to talk about it