Stephen on Software aka SOS

September 26, 2009

Slime and Offline Lisp Hyperspec

Filed under: Uncategorized — Tags: , — sljm @ 11:16 am

Just put the following in your .emacs files

(setq common-lisp-hyperspec-root "file:/usr/local/lisp/CLHS6/HyperSpec/")

There are lots of useful information in SLIME Features that are useful for those who are just starting out with SLIME.

September 8, 2009

Clojure and SLIME

Filed under: Uncategorized — Tags: , — sljm @ 8:45 pm

This is my setup for Clojure and SLIME on Emacs 23.1 and Windows Vista.

First download SLIME, clojure-mode and swank-clojure.

Locate your .emacs file. Look for ur %APPDATA% directory or create it if it is not there.

Unzip all the files to a directory, I used c:\lisp and rename the directories accordingly.

  1. SLIME in c:\lisp\slime
  2. clojure-mode in c:\lisp\clojure-mode
  3. swank-clojure in c:\lisp\swank-clojure
  4. clojure in m:\programming stuff\clojure

Just replace the directories with the ones you used.

The following is my .emacs file

(add-to-list 'load-path "c:/lisp/clojure-mode")
(add-to-list 'load-path "c:/lisp/swank-clojure")
(add-to-list 'load-path "C:/lisp/slime");Your slime directory

(setq swank-clojure-jar-path "m:/programming stuff/clojure/clojure-1.0.0.jar")

(require 'clojure-mode)
(require 'swank-clojure-autoload)
(require 'slime)
(eval-after-load "slime" (slime-setup '(slime-repl)))
(slime-setup)

Blog at WordPress.com.