Paul Huff ([info]phuff) wrote in [info]emacs,

js-comint.el - an interactive javascript mode for use with js2-mode.

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:
http://js-comint-el.sourceforge.net/

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.

  • Post a new comment

    Error

  • 4 comments

[info]hober

October 31 2008, 16:02:54 UTC 3 years ago

Awesome! I'm going to give this a try at work today.

[info]phuff

October 31 2008, 19:56:29 UTC 3 years ago

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 :)

[info]7leaguebootdisk

October 31 2008, 20:51:16 UTC 3 years ago

nifty!

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.

Anonymous

November 2 2008, 03:28:28 UTC 3 years ago

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
Create an Account
Forgot your login or password?
Facebook Twitter More login options
English • Español • Deutsch • Русский…