Re: Working Slackware Linux / emacs 23.3.1 / lein 1.6.2 / swank-1.4.0 / clj 1.3.0 REPL
Just do like this: 1.clone https://github.com/technomancy/clojure-mode.git into preferred directory e.g ./~git. add (add-to-list 'load-path ~/git/clojure-mode) (require 'clojure-mode) to .emacs 2.Install leiningen 3.(from terminal) lein plugin install swank-clojure 1.3.3 4.(from terminal ) lein new testproject cd testproject 5.(open file in emacs )c-x c-f testproject/core.clj 6.(emacs ) M-x clojure-jack-in You are good to hack! On Dec 12, 4:19 am, Phil Hagelberg p...@hagelb.org wrote: On Fri, Dec 9, 2011 at 2:17 PM, Richard Tiger Melville melvilleti...@gmail.com wrote: 4. Use bleeding edge lein to create the project That's actually not the bleeding-edge version. But anyway, if you are using your own custom shell script to launch swank it should be irrelevant what leiningen version you use. I'm wondering if you found the Troubleshooting section of the Swank Clojure readme: https://github.com/technomancy/swank-clojure If not, would this information have helped? How can could it be made easier to find by people who need it? If not, what should be added to the documentation? It's hard for me to guess since you haven't included any information at all about what went wrong. -Phil -- 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
Working Slackware Linux / emacs 23.3.1 / lein 1.6.2 / swank-1.4.0 / clj 1.3.0 REPL
Spent a day with the getting started instructions - everything failed: clojure-jack-in, cdt, package.el, you name it. This brute force method using M-x slime-connect is working for me: 1. eswank script #!/bin/sh LISPDIR=/usr/local/lisp CLASSPATH=$LISPDIR/swank-clojure-1.4.0.jar:$LISPDIR/clojure/ clojure-1.3.0.jar NULL_DEVICE=/dev/null JVM_OPTS=${JVM_OPTS:-$JAVA_OPTS} MAIN=swank.swank VERSION=1.4.0 java -cp $CLASSPATH $JVM_OPTS -Dproject.version=$VERSION \ clojure.main -e (use '$MAIN)(apply -main *command-line-args*) / dev/null $@ 2. Run it bash-4.1$ eswank user= Connection opened on null port 4005. nil 3. Setup .emacs ;; load git clone of slime https://github.com/technomancy/slime/ (add-to-list 'load-path /usr/local/lisp/clojure-emacs/slime) (require 'slime) ;; disable autodoc-mode to avoid swank crash after typing two characters ;; https://github.com/technomancy/swank-clojure/issues/49 (eval-after-load 'slime '(progn (setq slime-protocol-version 'ignore) (setq slime-use-autodoc-mode nil) (slime-setup '(slime-fancy (slime-setup '(slime-repl)) ;; Load git clone of clojure-mode (add-to-list 'load-path /usr/local/lisp/clojure-emacs/clojure-mode) (require 'clojure-mode) (require 'clojure-test-mode) 4. Use bleeding edge lein to create the project bash-4.1$ lein version Leiningen 1.6.2 on Java 1.6.0_25 Java HotSpot(TM) Client VM 5. Edit project.clj and use slime-connect M-x slime-connect ... ; SLIME 2011-05-27 user (+ 3 4) 7 user -- 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
Re: Working Slackware Linux / emacs 23.3.1 / lein 1.6.2 / swank-1.4.0 / clj 1.3.0 REPL
On Fri, Dec 9, 2011 at 2:17 PM, Richard Tiger Melville melvilleti...@gmail.com wrote: 4. Use bleeding edge lein to create the project That's actually not the bleeding-edge version. But anyway, if you are using your own custom shell script to launch swank it should be irrelevant what leiningen version you use. I'm wondering if you found the Troubleshooting section of the Swank Clojure readme: https://github.com/technomancy/swank-clojure If not, would this information have helped? How can could it be made easier to find by people who need it? If not, what should be added to the documentation? It's hard for me to guess since you haven't included any information at all about what went wrong. -Phil -- 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