Log in

js-comint.el - an interactive javascript mode for use with js2-mode. - Emacs [entries|archive|friends|userinfo]

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

js-comint.el - an interactive javascript mode for use with js2-mode. [Oct. 31st, 2008|09:34 am]


Hey Guys.

I just made my first official release of js-comint.el.

Js-comint.el is a javascript comint mode which lets you run a
javascript interpreter from within emacs. It's hosted on
http://sourceforge.net/projects/js-comint-el and has a web page which
can be found here:

It works really well in conjunction with js2-mode by Steve Yegge for
javascript editing. With a couple of extra lines of elisp, you can be editing along some javascript, hit C-x C-e and execute the javascript in a javascript interpreter like Rhino or Spidermonkey.

Questions or comments can be sent to me via e-mail (check the .el for my e-mail).
As I'm a bit of an amateur elisper, suggestions for imrpovement are always welcome.

[User Picture]From: hober
2008-10-31 04:02 pm (UTC)
Awesome! I'm going to give this a try at work today.
(Reply) (Thread)
[User Picture]From: phuff
2008-10-31 07:56 pm (UTC)
Let me know if it doesn't work for you. Or if it works well. Or if you think it sucks. Or if you like it :)
(Reply) (Parent) (Thread)
[User Picture]From: 7leaguebootdisk
2008-10-31 08:51 pm (UTC)


Though what I want is the reciprocal, a way to run emacs in javascript (or java for that matter).

Yeah, emacs on a T-Mobile G1 would be nifty.
(Reply) (Thread)
From: (Anonymous)
2008-11-02 03:28 am (UTC)

Error ;(

M-x run-js

Exception in thread "main" java.lang.NoClassDefFoundError: org/mozilla/javascript/tools/shell/Main
Caused by: java.lang.ClassNotFoundException: org.mozilla.javascript.tools.shell.Main
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:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Could not find the main class: org.mozilla.javascript.tools.shell.Main. Program will exit.

Process js exited abnormally with code 1
(Reply) (Thread)