diff options
author | Alan Pearce | 2016-11-25 14:20:25 +0100 |
---|---|---|
committer | Alan Pearce | 2016-11-25 14:20:25 +0100 |
commit | 56328035acc6d62e1e0d5e94959d0e4d0ee8ec3d (patch) | |
tree | 4bc80ba7270bd7c5b7d821d9d9710c2c39383608 | |
parent | 1aa802999dc54ca0c34764f3950635685cdc5fc5 (diff) | |
download | nixfiles-56328035acc6d62e1e0d5e94959d0e4d0ee8ec3d.tar.lz nixfiles-56328035acc6d62e1e0d5e94959d0e4d0ee8ec3d.tar.zst nixfiles-56328035acc6d62e1e0d5e94959d0e4d0ee8ec3d.zip |
Emacs: Configure JS IDE features
-rw-r--r-- | tag-emacs/emacs.d/init.org | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org index d5a6a21a..089f9866 100644 --- a/tag-emacs/emacs.d/init.org +++ b/tag-emacs/emacs.d/init.org @@ -1871,6 +1871,21 @@ it though js2-include-node-externs t))) #+END_SRC +**** jade (not pug) + +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~ + +#+BEGIN_SRC emacs-lisp + (use-package jade + :config (progn + (add-hook 'js2-mode-hook #'jade-interaction-mode))) +#+END_SRC + *** coffee-mode #+BEGIN_SRC emacs-lisp |