Carpe diem

Carpe diem

Tamilselvan is a Peaceful Programmer.

19 Nov 2016

Slime Connect to MultipleLisps

When you are using slime to connect emacs the default ‘M-x slime’ will connect to local instance of CommonLisp. But If you want to connect to Lisps in different machine you can use slime feature called

M-x slime-connect

In-order to do that we need start CommonLisp server.

Swank Server

You can start another local instance or start swank server on different machine.

Starting Local Instance of Lisp

    (ql:quickload "swank")
    (swank:create-server :port 4005)

Starting Remote Instance via SSH

In order to start Lisp instance on remote machine we need to set ‘loopback-interface’ to remote-ip address.

    (ql:quickload "swank")
    (setf swank::*loopback-interface* "192.168.0.5")
    (swank:create-server :port 4005)

Connecting to Different Lisp

So in order to connect to different lisp just use

    M-x slime-connect

It will ask for IP and port.

Connect and Enjoy