diff options
author | Alan Pearce | 2017-05-10 10:45:03 +0200 |
---|---|---|
committer | Alan Pearce | 2017-05-10 10:45:03 +0200 |
commit | 4bdc613a8980602dd35ec0ead87c6411ae4590de (patch) | |
tree | c5b5ed60ebcdca4616e6fbddd8655a9a3137bfd2 /emacs | |
parent | 1e375acc1cb7d23775fd39df71c0206fc66392ac (diff) | |
download | nixfiles-4bdc613a8980602dd35ec0ead87c6411ae4590de.tar.lz nixfiles-4bdc613a8980602dd35ec0ead87c6411ae4590de.tar.zst nixfiles-4bdc613a8980602dd35ec0ead87c6411ae4590de.zip |
Emacs: replace Jade (JS IDE) with Indium
Jade was renamed due to trademark issues.
Diffstat (limited to 'emacs')
-rw-r--r-- | emacs/.emacs.d/init.org | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org index 5d115d93..129ac66f 100644 --- a/emacs/.emacs.d/init.org +++ b/emacs/.emacs.d/init.org @@ -2010,19 +2010,28 @@ the project. This will allows emacs to find their executables. (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 |