redguardtoo / js-comint

js-comint will send the code from Emacs into node.js or rhino
GNU General Public License v3.0
71 stars 22 forks source link

Customization for Windows #21

Open ceving opened 6 years ago

ceving commented 6 years ago

It might be useful to add the following to the documentation, when using js-comint on Windows.

This disables nodes own readline:

(setenv "NODE_NO_READLINE" "1")

See the discussion on Stackoverflow

And this sets the executable. Otherwise js-comint will search just for node without the .exe extension.

(setq inferior-js-program-command "C:/Program Files/nodejs/node.exe")
redguardtoo commented 6 years ago

Thanks. I will update the documentation.

redguardtoo commented 6 years ago

As I checked. js-comint runs (setenv "NODE_NO_READLINE" "1") automatically when starting repl.

redguardtoo commented 6 years ago

83e932e doc and bugs (Chen Bin)