all repos — nixfiles @ 4bdc613a8980602dd35ec0ead87c6411ae4590de

System and user configuration, managed by nix and home-manager

Emacs: replace Jade (JS IDE) with Indium Jade was renamed due to trademark issues.

Alan Pearce
commit

4bdc613a8980602dd35ec0ead87c6411ae4590de

parent

1e375acc1cb7d23775fd39df71c0206fc66392ac

1 file changed, 13 insertions(+), 4 deletions(-)

jump to
M emacs/.emacs.d/init.orgemacs/.emacs.d/init.org
@@ -2010,19 +2010,28 @@ :config (progn
(add-hook 'js2-mode-hook #'add-node-modules-path))) #+END_SRC -**** jade (not pug) +**** Indium Javascript with an inferior node.js process and a debugger? Awesome. To debug with node, use version 6.9.1 or later of node and run it with ~--inspect~ and, to break on the first line, ~--debug-brk~. -For Chrom*, it needs to be launched with ~--remote-debugging-port=9222~ +For Chrom*, it needs to be launched with +~--remote-debugging-port=9222~ + +Node will tell you to open an URL in Chrome: + +~chrome-devtools://inspector.html?...&ws=127.0.0.1:PORT/PATH~ + +Instead, do this: + +~M-x indium-connect-to-nodejs RET 127.0.0.1 RET PORT RET~ #+BEGIN_SRC emacs-lisp -(use-package jade +(use-package indium :config (progn - (add-hook 'js2-mode-hook #'jade-interaction-mode))) + (add-hook 'js2-mode-hook #'indium-interaction-mode))) #+END_SRC *** coffee-mode