coffee as inf-mode, strange escape characters will be printed instead of the nice looking REPL prompt we get in classic Terminal. It looks like it results from Node.js using Readline. As suggested on Stack Overflow, it is possible to use something like
export NODE_NO_READLINE=1 (in your
.profile file); however, if you want Raedline support when running
coffee in a Terminal, it might just easier to change the command that Emacs call (for example, create two
sh scripts, say
coffee2, that set the above environment variable before running either
node, we can use
(setq inferior-js-program-command "node2"). It appears that an even easier solution is proposed on Node.js help page for the REPL: using a combination of
NODE_NO_READLINE and rlwrap.
Literate programming is possible thanks to docco. Incidentally, I used a similar tool for a statistical introduction to health measurement with R: rocco which plays nicely with R code. Finally, it relies on Node.js, which is another of those nice projects I discovered last year. But see this cool “Introduction to Node.js with Ryan Dahl:”
Now the question I'd like to ask is: Would it be possible to play with d3.js with CoffeeScript directly?1 It looks like Harlan T Wood asked the same question some months ago and provided an answer, see his gist (also on http://bl.ocks.org/1091420).