Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

updated README for 1.0.0 / 1.0-SNAPSHOT

  • Loading branch information...
commit 230fbd8fe7a005059b2af18c75d02e9949a3e9fc 1 parent 0ce450c
Tim Dysinger authored July 14, 2009

Showing 1 changed file with 13 additions and 44 deletions. Show diff stats Hide diff stats

  1. 57  README
57  README
@@ -15,24 +15,19 @@ have access to tens of thousands of Java libraries inside Clojure
15 15
 
16 16
 * Install Maven [ http://maven.apache.org ]
17 17
 
18  
-* Install Clojure, Contrib & POM with git & maven.
  18
+* Install Clojure Contrib & POM with git & maven.
19 19
   You can find maven-friendly repos on my github account.
20 20
 
21  
-git clone git://github.com/dysinger/clojure.git
22  
-cd clojure
23  
-git checkout 1.0.0
24  
-mvn install
25  
-cd ..
  21
+NOTE: Clojure 1.0.0 is now on the maven repos officially
26 22
 
27 23
 git clone git://github.com/dysinger/clojure-pom.git
28 24
 cd clojure-pom
29  
-git checkout 1.0.0
30 25
 mvn install
31 26
 cd ..
32 27
 
33 28
 git clone git://github.com/dysinger/clojure-contrib.git
34 29
 cd clojure-contrib
35  
-git checkout 1.0.0
  30
+git checkout -b 1.0-SNAPSHOT origin/1.0-SNAPSHOT
36 31
 mvn install
37 32
 cd ..
38 33
 
@@ -101,7 +96,7 @@ cat >pom.xml <<\THEEND
101 96
     <dependency>
102 97
       <groupId>org.clojure</groupId>
103 98
       <artifactId>clojure-contrib</artifactId>
104  
-      <version>1.0.0</version>
  99
+      <version>1.0-SNAPSHOT</version>
105 100
     </dependency>
106 101
     <dependency>
107 102
       <groupId>commons-math</groupId>
@@ -124,38 +119,12 @@ THEEND
124 119
 mvn process-resources ; # <- now your are ready for emacs slime
125 120
 mvn compile           ; # <- see it compile your clojure code
126 121
 mvn test              ; # <- see it test your clojure code
127  
-mvn install           ; # <- install a jar for other components
128  
-mvn assembly:assembly ; # <- build one big jar
129  
-
130  
-Q: How can I use this in Emacs / Slime ?
131  
-
132  
-> You need to update your .emacs file below your clojure / swank
133  
-setup. I add a function that lets you pick the clojure project and
134  
-it automatically configures your classpath for the project.
135  
-
136  
-(defun slime-project (path)
137  
-  "Setup classpaths for a maven/clojure project & refresh slime"
138  
-  (interactive "GPath: ")
139  
-  (when (get-buffer "*inferior-lisp*")
140  
-    (kill-buffer "*inferior-lisp*"))
141  
-  (setq swank-clojure-binary nil
142  
-        swank-clojure-jar-path (expand-file-name "target/dependency/" path)
143  
-        swank-clojure-extra-classpaths
144  
-        (mapcar (lambda (d) (expand-file-name d path))
145  
-                '("src/" "target/classes/" "test/"))
146  
-        swank-clojure-extra-vm-args
147  
-        (list (format "-Dclojure.compile.path=%s"
148  
-                      (expand-file-name "target/classes/" path)))
149  
-        slime-lisp-implementations
150  
-        (cons `(clojure ,(swank-clojure-cmd) :init swank-clojure-init)
151  
-              (remove-if #'(lambda (x) (eq (car x) 'clojure))
152  
-                         slime-lisp-implementations)))
153  
-  (save-window-excursion
154  
-    (slime)))
155  
-
156  
-WIN!:   You can change your SLIME's classpath as you work on different
157  
-        modules in different SLIME sessions.
158  
-
159  
-Bonus!: Since this POM unpacks all the dependency jars into a directory
160  
-        you can add/remove/clean/rebuild your dependencies without
161  
-        restarting your slime session.
  122
+mvn install           ; # <- install a jar for dependant projects (default)
  123
+mvn assembly:assembly ; # <- build one big jar for easy deploys
  124
+
  125
+Q: How can I use this in Emacs & Slime ?
  126
+
  127
+> Most of us use emacs 23 (trunk) and slime (trunk) with
  128
+Philip Hagelberg's emacs-starter-kit.  I won't cover all that here.
  129
+It's on github.  http://github.com/technomancy/emacs-starter-kit
  130
+Ask about setup particulars on IRC.  It's rapidly evolving.

0 notes on commit 230fbd8

Please sign in to comment.
Something went wrong with that request. Please try again.