Difference between revisions of "Slime"

From ArchWiki
Jump to: navigation, search
m (<tt>text</tt> -> {{Codeline|text}})
m (codeline -> ic)
Line 27: Line 27:
 
  (slime-setup)
 
  (slime-setup)
  
Then run {{Codeline|M-x slime}} from within emacs.
+
Then run {{Ic|M-x slime}} from within emacs.
  
 
Alternatively, for a fancier slime setup, you can change the above lines to:
 
Alternatively, for a fancier slime setup, you can change the above lines to:

Revision as of 16:29, 11 December 2011

Introduction

SLIME (Superior Lisp Interaction Mode for Emacs) provides a development environment for SBCL (detailed in this article), CMUCL, CLISP and other Lisp implementations.

The components required are:

  • emacs
  • sbcl
  • slime

Installation

# pacman -S emacs sbcl slime-cvs
Note: It is also possible to install slime from the AUR, though the -cvs package is recommended by the upstream developers.

Configuration

From the .INSTALL file.

To make use of slime, add the following lines to your init file:

(setq inferior-lisp-program "/path/to/lisp-executable")
(add-to-list 'load-path "/usr/share/emacs/site-lisp/slime/")
(require 'slime)
(slime-setup)

Then run M-x slime from within emacs.

Alternatively, for a fancier slime setup, you can change the above lines to:

(setq inferior-lisp-program "/path/to/lisp-executable")
(add-to-list 'load-path "/usr/share/emacs/site-lisp/slime/")
(require 'slime)
(slime-setup '(slime-fancy))

Resources