Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3618050
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T22:42:06+00:00 2026-05-18T22:42:06+00:00

I can run emacs and start slime (with M-x slime ). At this point

  • 0

I can run emacs and start slime (with M-x slime). At this point I get the REPL in the inferior-lisp buffer and can run lisp there. But when I open up lisp code in another buffer none of the slime-goodness works (C-x C-e, C-c C-k etc.) and I keep seeing this in the Messages buffer (with an increasing count-number):

slime-connection: Not connected.

Polling
"/var/folders/B9/B9B5J15dH+aNt5J5gkROEk+++TI/-Tmp-/slime.3202".. (Abort with `M-x
slime-abort-connection’.) [69 times]

Makes me think slime is not connecting to the correct lisp interpreter, but since I am very new to emacs and lisp I am stuck here. My setup is:

  • Mac OSX Snow Leopard
  • GNU Emacs 23.2
  • emacs-starter-kit
  • very few customizations: arnab.el and the files under arnab/
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T22:42:07+00:00Added an answer on May 18, 2026 at 10:42 pm

    The following is what I did to get Common Lisp and Clojure to work in the same Emacs installation, along with the excellent emacs-starter-kit. This won’t let you use both at the same time (you have to restart Emacs to switch from CL to Clojure or vice versa)

    I believe that the version of SLIME in ELPA is old, but works for Clojure. Newer version of SLIME won’t work for Clojure. Additionally, this version of SLIME seems to be stripped down (no swank-loader.el?) and won’t work with Common Lisp.

    These are the steps I did to get this to work, it’s just what worked for me. All of the bits are under active development, so I think breakage in this area is pretty likely.

    With a fresh Emacs (no configuration at all, so move anything .emacs somewhere else for the moment) install ELPA:

    http://tromey.com/elpa/install.html

    From within Emacs, install the packages “slime” and “slime-repl”. (M-x package-list-packages then C-s slime then i to select and x to install)

    Move the files in ~/.emacs.d/elpa/slime-20100404 and ~/.emacs.d/elpa/slime-repl-20100404 to a new directory like ~/hacking/lisp/elpa-slime.

    Throw out the ELPA install: $ rm -rf .emacs.d.

    Now clone the emacs-starter-kit and move it to .emacs.d. I only did this with a fresh copy from technomancy’s Github, so try that first if you have problems.

    Get the latest SLIME with CVS:

    cvs -d :pserver:anonymous:anonymous@common-lisp.net:/project/slime/cvsroot co cvs-slime
    

    I don’t think OS X comes with CVS installed, so you’ll need to install it from Macports, Homebrew or something.

    I put cvs-slime in ~/hacking/lisp.

    Hopefully it’s obvious what the Emacs Lisp below does:

    (defun slime-common-lisp ()
      (interactive)
      (setq inferior-lisp-program "/usr/local/bin/sbcl") ; your Common Lisp impl
      (add-to-list 'load-path "~/hacking/lisp/cvs-slime/")  ; your SLIME from CVS directory
      (require 'slime)
      (slime-setup '(slime-repl))
      (slime))
    
    (defun slime-clojure ()
      (interactive)
      (add-to-list 'load-path "~/hacking/lisp/elpa-slime")
      (require 'slime)
      (slime-setup '(slime-repl))
      (slime-connect "localhost" 4005))
    

    For Clojure you’d have to start the Clojure runtime and swank-clojure on port 4005, I think using Leiningen is the approved method:

    Create a new project:

    $ lein new project
    $ cd project
    

    In project.clj:

    (defproject newclj "1.0.0-SNAPSHOT"
        :description "FIXME: write"
        :dependencies [[org.clojure/clojure "1.2.0"]
                       [org.clojure/clojure-contrib "1.2.0"]]
        :dev-dependencies [[swank-clojure "1.2.1"]])
    

    Then:

    $ lein deps
    $ lein swank
    

    Edited to add:

    If you find that Paredit in the SLIME REPL is broken while using this setup, check this out:
    http://www.emacswiki.org/emacs/ParEdit#toc3

    At least one other potential issue with this is that, AFAICT, if you open a Common Lisp source file and then start SLIME, you won’t be able to send forms from the first buffer to the SLIME buffer. So open a SLIME buffer before opening any Common Lisp source files, and it should work. This doesn’t seem to apply to Clojure.

    References:

    emacs setup for both clojure and common lisp with slime-fancy (slime-autodoc)

    https://github.com/technomancy/swank-clojure/issues/closed#issue/31/comment/544166

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When I run start-server in Emacs I get the following in my *Messages* buffer:
I can run the following query in PHPMyAdmin, but for some reason I get
I'm trying to get Geiser's REPL to work in Emacs, but it doesn't seem
There are 5 Elisp commands that can be run on an Emacs fileset, plus
I've successfully installed clojure-mode, slime, slime-repl within Emacs. I start a swank server with
I run the following command in Emacs unsuccessfully C-u How can you clear the
I can run my program outside of a jar file, but I want to
I can run this command in SqlManager to detach the db ALTER DATABASE mydb
I can run multi-queries with MYSQL v5 with extension PHP :mysqli. But with MYSQL
I can run tasks as part of our functional tests just fine using this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.