> (defvar clojure-stuff-path "~/clj" > "Where all cool Clojure stuff lies.") > > (defun slime-clojure-internal-swank () > (interactive) > (add-to-list 'load-path (concat clojure-stuff-path "/clojure-mode")) > (add-to-list 'load-path (concat clojure-stuff-path "/swank- > clojure")) > (require 'swank-clojure-autoload) > (require 'clojure-mode) > (clojure-slime-config clojure-stuff-path) > (slime)) > > (defun slime-clojure-external-swank () > (interactive) > (add-to-list 'load-path (concat clojure-stuff-path "/clojure-mode")) > (add-to-list 'load-path (concat clojure-stuff-path "/swank- > clojure")) > (add-to-list 'load-path (concat clojure-stuff-path "/slime")) > (require 'swank-clojure-autoload) > (require 'clojure-mode) > (clojure-slime-config clojure-stuff-path ) > ;; The order of the line above and below is important > (require 'slime) > (slime-setup '(slime-fancy)) > (call-interactively 'slime-connect))
Which of course should be changed to: (defvar clojure-stuff-path "~/clj" "Where all cool Clojure stuff lies.") (defun slime-clojure-internal-swank () (interactive) (add-to-list 'load-path (concat clojure-stuff-path "/clojure-mode")) (require 'clojure-mode) (clojure-slime-config clojure-stuff-path) (slime)) (defun slime-clojure-external-swank () (interactive) (add-to-list 'load-path (concat clojure-stuff-path "/clojure-mode")) (require 'clojure-mode) (clojure-slime-config clojure-stuff-path ) (call-interactively 'slime-connect)) And, while I'm at it, the way you start a separate swank-server is this: $ java -cp ~/clj/clojure/clojure.jar:~/clj/swank-clojure clojure.lang.Repl user=> (require 'swank.swank) user=> (swank.swank/ignore-protocol-version "2009-05-17") user=> (swank.swank/start-server "/tmp/slime.tmp" :port 4005 :encoding "utf-8") /Mathias --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---