If you need extra libraries in your classpath, you can give lein-oneoff plugin a try: https://github.com/mtyaka/lein-oneoff
Using lein-oneoff, you should first define your dependencies in a clojure file (mydeps.clj) and then issuing the following command: lein oneoff --swank mydeps.clj This will start a swank server with a properly adjusted classpath. You still need to create the mydeps.clj file, but you don't need to create a brand new leiningen project. Regards, Matjaz On Tue, Jun 14, 2011 at 1:36 PM, Rasmus Svensson <r...@lysator.liu.se>wrote: > 2011/6/14 Vincent <vincent....@gmail.com>: > > > > Dear all , > > I am using emacs with lein > > I want to try out repl in emacs , but without creating a new project > using > > lien > > Presently , following steps i have to do to start repl > > 1. lein new project1 ( dummy project .... as i have only run repl ) > > 2. cd project1 > > 3. modifying project.clj to set dependencies and dev depend. > > 4. run lein deps > > 5. run lein swank > > If project already there , then step 2 , step 5 > > 6. in emacs , M-x slime-connect .v > > Thanks in advance > > Vincent > > If you install swank-clojure as a leiningen plugin, it installs a > shell script for this in ~/.lein/bin/swank-clojure: > > 0. lein plugin install swank-clojure 1.3.1 (if you haven't done this) > 1. ~/.bin/bin/swank-clojure (or > %USERPROFILE%/.lein/bin/swank-clojure.bat on Windows) > 2. M-x slime-connect > > This will give you a repl with _some_ version of Clojure and no > contrib or any extra libraries. (If you need to control the version > and libraries used, you should be using a project.) > > // raek > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en