Last major edit (later minor edits)
Sammanfattning: added CategoryNeedsAttention
Tillagd:
> == running node.js from Emacs (on Windows) using js-comint ==
> :: The simplest way to have node.js (tested using node v0.8.1) as an inferior shell under Emacs is to use the [[http://js-comint-el.sourceforge.net/|js-comint package]]. Then, set <code>(setq inferior-js-program-command "node --interactive")</code> to force node to run in interactive mode. The command <code>M-x run-js</code> will then open the interpreter. ([[http://stackoverflow.com/questions/8909836/how-to-run-node-js-interactively-in-emacs-on-windows|source]])
> NOTE: tab-completion doesn't work
> Also tested on Win7, Emacs 24 and node.js 0.10.5
> == using SwankJs ==
> see SwankJs for details.
> What are the advantages to using SwankJs?
> There's still no tab-completion.
> == using nodejs-mode ==
Ändrad:
< == running node.js from Emacs on Windows ==
< Stackoverflow: [[http://stackoverflow.com/questions/8909836/how-to-run-node-js-interactively-in-emacs-on-windows|How to run node.js interactively in Emacs on Windows]]
< <pre>
< The simplest way to have node.js (tested using node v0.8.1) as an inferior shell under Emacs is to use the js-comint package. Then, set (setq inferior-js-program-command "node --interactive") to force node to run in interactive mode. The command M-x run-js will then open the interpreter.
< </pre>
< http://js-comint-el.sourceforge.net/ - how can I make the above a blockquote, with wiki-links? (colon-indentation seems to be broken)
< Also working on Win7, Emacs 24 and node.js 0.10.5
till
> [new:MichaelPaulukonis:2013-04-30 14:35 UTC] I tested this on 2013.04.29 with Win7, Emacs 24 and node.js 0.10.5. A shell is opened, once something is sent to node node is actually launched, but Emacs does not respond to any more input until I kill the node process externally.
Node-JS is an asynchronous TCP programming framework using JavaScript.
(setq inferior-js-program-command "node --interactive") to force node to run in interactive mode. The command M-x run-js will then open the interpreter. (source)NOTE: tab-completion doesn’t work
Also tested on Win7, Emacs 24 and node.js 0.10.5
see SwankJs for details.
What are the advantages to using SwankJs?
There’s still no tab-completion.
There is a node.js mode. As of 2013-04-15 it has not been updated for Node.js 0.8 or later.
Question: But does it still work with newer versions of node.js ?
I tested this on 2013.04.29 with Win7, Emacs 24 and node.js 0.10.5. A shell is opened, once something is sent to node node is actually launched, but Emacs does not respond to any more input until I kill the node process externally.
CategoryJavaScript CategoryProgramming CategoryNeedsAttention