1. Here is my .emacs I use for Clojure Box to load the Jars and add the proper paths to your classpath:
(setq swank-clojure-extra-classpaths '()) (add-to-list 'swank-clojure-extra-classpaths "C:/Dev/clojure/clojure.jar") (add-to-list 'swank-clojure-extra-classpaths "C:/Dev/clojure-contrib/target/clojure-contrib-1.0-SNAPSHOT.jar") (add-to-list 'swank-clojure-extra-classpaths "C:/Dev/compojure/deps/jetty-6.1.16.jar") (add-to-list 'swank-clojure-extra-classpaths "C:/Dev/technomancy-clojure-http-client/src") etc... just add directories and jars as needed 2. Your .emacs file would be here: C:\Documents and Settings\${your username}\Application Data 3. I don't know about this one, but I had problems setting my home directory. Even though I did it, it was still looking in C:\Documents and Settings\${your username}\Application Data. Files there would load fine. On Wed, Jul 8, 2009 at 8: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 -~----------~----~----~----~------~----~------~--~---