Oh, here's an example snippet I just saw from Daniel Lyon on another thread (note how it cleverly grabs all the jars from the ~/.clojure directory--you could add another one of these for another directory of jars):
(setq swank-clojure-extra-classpaths (cons "/Users/fusion/Projects/Languages/Clojure/classes" (cons "/Users/fusion/Projects/Languages/Clojure" (directory-files "~/.clojure" t "\.jar$")))) (eval-after-load 'clojure-mode '(clojure-slime-config)) (setq swank-clojure-extra-vm-args '("-Dclojure.compile.path=/Users/ fusion/Projects/Languages/Clojure/classes")) On Wed, Jul 8, 2009 at 2:02 PM, Shawn Hoover <shawn.hoo...@gmail.com> wrote: > > On Wed, Jul 8, 2009 at 2:55 AM, dumb me <dumb...@gmail.com> wrote: > >> >> Hi All, >> >> I am a dumb around here. my first post among many to come :) >> >> I setup clojurebox to work thru the book. I am a newbie to emacs and >> to clojure. I don't mind the learning curve to emacs. >> >> I am completely blank about configuring Clojurebox. >> Here's what I want to do: >> >> 1) load all the code-examples and the related jar-files of the book - >> when I load ClojureBox. >> > > This requires putting the example source directly and all the jars into the > Emacs Lisp variable swank-clojure-extra-classpaths (or writing some code to > scoop them all up and generate a value to put in a variable). See the > Customization section of the README.rtf that installs with Clojure Box. > There should be a shortcut in the Start menu. > > >> 2) Where do I find the .emacs for Clojure Box? As I understand that I >> will have to modify this file to include the libraries/folder-path. I >> don't see one... >> > > "C-x C-f ~/.emacs". More info in the Customization section of the > README.rtf that installs with Clojure Box. > > >> 3) I have been trying to do (load-file >> "code.examples.introduction.clj") [my home directory being c:\emacs >> and the code folder inside the emacs folder.] and I always get the >> File-not-found exception. >> > > Once the classpath is set up correctly using the above techniques, in the > REPL you can type (use 'code.examples.introduction) or leave off code. or > code.examples. depending on what part you actually put on your classpath. > > Shawn > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---