Search code examples
windowsemacsslimesbcl

slime-fancy not loading with emacs sbcl slime windows configuration


I have slime with sbcl working in emacs 24.1 but can not get a slime repl to open.

I can use M-x slime to make a connection to sbcl in a inferior-lisp buffer but I can not invoke the slime-repl or get a nice lisp auto-indent when editing lisp files even though I am loading the slime-fancy contrib in .emacs. I don't get any error messages during start-up.

When I try M-x slime-repl I get [No match].

my .emacs file:

(setq inferior-lisp-program "sbcl")
(add-to-list 'load-path "c:/home/bin/emacs/site-lisp/slime/")
(require 'slime)
(require 'slime-autoloads)
(slime-setup '(slime-fancy))

I used this method for the installation:

http://www.pchristensen.com/blog/articles/installing-sbcl-emacs-and-slime-on-windows-xp

I have noticed a pattern that almost everything I try with Python and Clojure works as described and almost nothing I try related to common lisp works. I have also tried cusp with eclipse. I am willing to try yet another approach if there is something more recent for common lisp in windows.


Solution

  • After playing with Sujoy's answer and trimming it down to get it to work, I realized my original problem was caused by the (require 'slime) statement. The following .emacs file gets the slime repl to open as expected.

    (setq inferior-lisp-program "sbcl")
    (require 'slime-autoloads)
    (slime-setup '(slime-fancy))