Fire up the Lisp implementation, load Swank (via Quicklisp, for example), and run swank:create-server
:
CL-USER(1): (ql:quickload "swank")
;; ...
CL-USER(2): (swank:create-server)
;; Swank started at port: 4005.
4005
If you want to specify a different port, you can do so by using the :port
keyword argument:
CL-USER(3): (swank:create-server :port 4123)
;; Swank started at port: 4123.
4123
Note that since the protocol tends to change between versions, you need to make sure that you are not using wildly different versions of SLIME and Swank. For Common Lisp, I tend to use the versions from Quicklisp by putting something like the following into my .emacs
, depending on the version of SLIME currently available in Quicklisp:
(add-to-list 'load-path "~/quicklisp/dists/quicklisp/software/slime-20111105-cvs")
(add-to-list 'load-path "~/quicklisp/dists/quicklisp/software/slime-20111105-cvs/contrib")