On May 7, 2009, at 3:39 PM, Baishampayan Ghose wrote:

I tested with a new jar with the clj files, even then it doesn't work :(

Need help :)

Hi BG,

I've simplified my .emacs file and clojure launch script to only what's required for my slime setup to work with swank-clojure. With this simplified setup, I confirmed that slime's repl works and that M-. after typing (+ brings me to the definition of + in clojure.core.

The way I use slime/swank is to handle all Classpath issues myself in my "swank-clojure-binary" launch script. I've found that setup to break only very rarely with slime/swank/clojure updates. Other strategies may perform equally well or better, but I haven't tried them.

In the setup below, "/sq/ext" is a directory where I keep third party source controlled package. I'm running all from the HEAD of their Source Control repository. I did a fresh update just now.

Are you able to duplicate this setup to try?

--Steve

===========
/sq/ext
===========

cd /sq/ext
cvs -d :pserver:anonymous:anonym...@common-lisp.net:/project/slime/ cvsroot co slime
git clone git://github.com/jochu/swank-clojure.git
svn co http://clojure.googlecode.com/svn/trunk/ clojure
svn co http://clojure-contrib.googlecode.com/svn/trunk clojure-contrib

===========
.emacs
===========

(add-to-list 'load-path "/sq/ext/slime")
(add-to-list 'load-path "/sq/ext/swank-clojure/")

;; slime

(require 'slime)
(slime-setup '(slime-repl)) ; (:autodoc t)
(define-key global-map (kbd "<f5>") 'slime-selector)

;; swank

(setq swank-clojure-binary "/sq/bin/clj")
(require 'swank-clojure-autoload)

===========
/sq/bin/clj
===========

#!/bin/bash

export CLASSPATH=$CLASSPATH:/sq/ext/clojure/clojure.jar

CLJ=/sq/ext/clojure-contrib/launchers/bash/clj-env-dir

exec $CLJ "$@"

===========
procedure
===========

        - cd /sq/ext/clojure
        - ant
        - emacs
        - M-x slime
        - (+
        - M-.

--Steve

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to