On Sat, Sep 12, 2009 at 4:30 PM, Phil Hagelberg <p...@hagelb.org> wrote:
>
> Jim Menard <jim.men...@gmail.com> writes:
>
>> A few comments and questions about the setup process:
>>
>> At the end of the process, the mini-buffer says, "You must specify
>> either a `swank-clojure-binary' or a `swank-clojure-classpath'. What
>> should those values be? I see the swank-clojure directory that has
>> been installed, but I'm not sure what the binary is.
>
> I forgot to commit my changes to clojure-mode; try pulling in the
> latest revision from git://github.com/technomancy/clojure-mode.git

Done. After doing that and cleaning out some old SBCL cruft in my init
file, it seems to be working. Here's what I have in my init file:

  (require 'clojure-mode)
  (clojure-slime-config "~/src/clojure")

>> I like using autoload to load modes, but in order to call
>> clojure-slime-config I need to load clojure-mode.el explicitly,
>> correct? I don't want to put the call to clojure-slime-config in my
>> clojure-mode-hook because that gets called every time I open a clojure
>> buffer, correct?
>
> If you install via ELPA, the autoloads will be set up for you
> automatically. There's a bit of trickery that allows clojure-mode to be
> autoloaded like normal but still lets you use the clojure-slime-config
> function at startup without triggering a full load. So this should not
> be a problem unless you are manually handling your autoloads for some
> reason. Using the built-in update-directory-autoloads function will also
> work.

I don't use ELPA; I'm too old-school (26 years of Emacs and counting)
for such fancy hand-holding :-) I experimented with autoload, but
couldn't get it working (clojure-mode loaded, but it didn't find the
"slime" command when I tried M-x slime. In any case, require works.
It's unfortunate that I have to load it every time I start Emacs, but
that's not too often in any case.

> I've updated the install instructions; they no longer show how to
> manually add autoloads.
>
>> I noticed that clojure-install installed the 1.0 release, but I like
>> running against the master branch. Crazy, I know.
>
> Sure, just run M-x clojure-update.

Excellent. Thanks, and thank you for your help and clojure-mode.

> -Phil

Jim
-- 
Jim Menard, j...@io.com, jim.men...@gmail.com
http://www.io.com/~jimm/

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to