Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Emacs run-javascript?

Is there such a thing as a javascript equivalent to run-python et al available for Emacs 23 or later? I'd like to run a JS REPL from within Emacs with the standard load-definition/load-file bindings.

like image 585
Inaimathi Avatar asked Feb 25 '12 02:02

Inaimathi


2 Answers

Oh, this is cool. (Thanks for the question!)

I've just learned about MozRepl -- a Mozilla/Firefox extension -- via this answer to a related question, and Emacs support for MozRepl is already available.

  1. Install the browser extension and the Emacs library
  2. Start MozRepl from the browser using the Tools -> MozRepl menu
  3. M-x run-mozilla RET

See also http://www.emacswiki.org/emacs/MozRepl

like image 82
phils Avatar answered Sep 23 '22 19:09

phils


Yes. Check out js-comint.el, which is easily installable via Marmalade or MELPA.

As @phils mentions, MozRepl is also worth a look.

like image 42
sanityinc Avatar answered Sep 24 '22 19:09

sanityinc