Oops - hit Ctrl-S too soon :(
The error is:
---
Loading /home/apurva/.emacs-contrib/swank-clojure/swank-clojure.el
(source)...done
An error has occurred while loading `/home/apurva/.emacs':
error: Error: You must specify a swank-clojure-jar-path. Please see README of
swank-clojure.
---
When I change the order of (require 'swank-clojure-autoload) to be after
setting the swank-clojure-jar-path, the emacs initialization goes through. But
slime still doesn't start:
---
(clojure/require (quote swank))
(swank/ignore-protocol-version "2008-08-31")
(swank/start-server "/tmp/slime.7935")
Exception in thread "main" java.lang.NoClassDefFoundError:
Caused by: java.lang.ClassNotFoundException:
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
Process inferior-lisp exited abnormally with code 1
---
Regards,
Apurva
----- Original Message -----
From: "Apurva Sharan" <[EMAIL PROTECTED]>
To: [email protected]
Sent: Saturday, September 13, 2008 12:09:59 PM GMT +05:30 Chennai, Kolkata,
Mumbai, New Delhi
Subject: Re: clojure rant
I am trying out the changes - but this doesn't appear to work as mentioned in
the README.
This is what I have now in my .emacs:
(require 'clojure-mode)
(require 'clojure-auto)
(require 'swank-clojure-autoload)
(setq swank-clojure-jar-path <absolute path to clojure.jar>)
When I start emacs - I get an error
----- Original Message -----
From: "Matt Revelle" <[EMAIL PROTECTED]>
To: [email protected]
Sent: Saturday, September 13, 2008 11:33:50 AM GMT +05:30 Chennai, Kolkata,
Mumbai, New Delhi
Subject: Re: clojure rant
On Sep 13, 2008, at 2:00 AM, Apurva Sharan wrote:
>
> Hi Alexey,
>
> I am using Clojure with Emacs+Slime on Ubuntu 8.04 and it works with
> the latest version of Clojure & Clojure-contrib from SVN.
>
> I based my setup on the information provided in swank-clojure.clj.
> The packages are available from: http://clojure.codestuffs.com/
>
> 1. Here is what I have in my .emacs specific to clojure:
>
> (add-to-list 'load-path <path to clojure-extras>)
> (add-to-list 'load-path <path to swank-clojure>)
>
> (require 'clojure-mode)
> (require 'clojure-auto)
> (require 'swank-clojure)
>
> (setq inferior-lisp-program "clojure")
Don't need to set the inferior-lisp-program.
>
>
> (add-hook 'clojure-mode-hook
> '(lambda ()
> (define-key clojure-mode-map "\C-c\C-e" 'lisp-eval-last-
> sexp)
> (define-key clojure-mode-map "\C-x\C-e" 'lisp-eval-last-
> sexp)))
>
>
> 2. I have an executable file named "clojure" in my path and
> a .clojure.conf in my home directory. This are based off files
> included in the clojure-extras package.
>
That external script is no longer needed, though using it will still
work. The classpath (and in a moment, java.library.path) can be set
in your .emacs now.
> Hope this helps ...
>
> Regards,
> Apurva
>
>
> ----- Original Message -----
> From: "Alexey Goldin" <[EMAIL PROTECTED]>
> To: "Clojure" <[email protected]>
> Sent: Saturday, September 13, 2008 10:34:24 AM GMT +05:30 Chennai,
> Kolkata, Mumbai, New Delhi
> Subject: Re: clojure rant
>
>
> Oh. Thanks, will try right now. I am doing this on Friday night and I
> get answers immediately. Weird.
>
> On Sep 12, 11:49 pm, Matt Revelle <[EMAIL PROTECTED]> wrote:
>> Hey Alexey,
>>
>> On Sep 13, 2008, at 12:41 AM, Alexey Goldin wrote:
>>
>>
>> Well, you'll be missing tab completion for a little longer. It's on
>> my todo list but
>> not highest priority.
>>
>>> Please forgive my rant. It is obvious that many people are using it
>>> with great success and having much fun, so there obviously is a
>>> way. I
>>> just fail to see it :-) Any hint on your clojure configuration is
>>> appreciated. Thanks!
>>
>> If you swing both ways, Vimclojure is another option.
>>
>
> No, I am sorry I am not swinging that far. The only thing I know about
> vi(m) is how to exit it if I start it accidentally.
>
>
> Thanks a lot!
>
>
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---