This repository has been archived by the owner on Jan 23, 2018. It is now read-only.
forked from jochu/swank-clojure
/
README
48 lines (30 loc) · 1.39 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Swank Clojure
Swank-clojure is an adapter that lets you use SLIME (the Superior Lisp
Interaction Mode for Emacs) with Clojure.
Installation
1. Install clojure-mode.el. Either use ELPA[1] or get it manually
install from source[2].
2. Invoke M-x clojure-install and follow the directions given. This
will download and configure swank-clojure as well as other
dependencies.
3. If you want to use SLIME with Common Lisp or another Lisp
implementation, add your default lisp back in:
;; Example for sbcl to put in your .emacs:
(add-to-list 'slime-lisp-implementations '(sbcl ("sbcl")))
4. Start slime!
M-x slime
Or if you have alternate implementations configured:
M-- M-x slime clojure
You can also start a Slime session for a given project:
M-x swank-clojure-project
This will prompt for a project dir and set up the classpath for that
structure based on some existing Clojure conventions:
* src/ and test/ - added to the classpath
* lib/ - all .jars in here are added to the classpath
* src/main/clojure, src/test/, target/classes,
target/dependency - added if pom.xml exists (maven-style)
Copyright (C) 2008-2009 Jeffrey Chu, Phil Hagelberg
This file is licensed under the terms of the GNU General Public
License as distributed with Emacs (press C-h C-c to view it).
[1] - http://tromey.com/elpa
[2] - http://github.com/jochu/clojure-mode