Organizational Research By

Surprising Reserch Topic

how to run node js interactively in emacs on windows


how to run node js interactively in emacs on windows  using -'javascript,node.js,emacs'

I thought this would work:

(defun my-node ()
  (interactive)
  (pop-to-buffer (make-comint "my-node" "node")))


But when I do M-x my-node and enter 1+1 in the comint buffer, it does not display any output.

This is in Emacs 24.0.50.1 on Windows 7 and NodeJS is installed without any special configuration.

Calling node.js non-interactively as in M-x compile RET node hello-world.js RET works fine. Running node interactively in cmd works fine.

This might be related: when I run M-x shell and enter node in the shell buffer and then enter 1+1, it doesn't display the result. I must be missing something very basic.

Update:

Probably related: emacs/Python: running python-shell in line buffered vs. block buffered mode - Stack Overflow
    

asked Sep 18, 2015 by patelnikul321
0 votes
55 views



Related Hot Questions

3 Answers

0 votes
NULL
answered Sep 18, 2015 by deepak07.s
0 votes
NULL
answered Sep 18, 2015 by yogeshplv
0 votes
NULL
answered Sep 18, 2015 by r3tt

...