summary refs log tree commit diff stats
path: root/tag-emacs/emacs.d/init.org
diff options
context:
space:
mode:
Diffstat (limited to 'tag-emacs/emacs.d/init.org')
-rw-r--r--tag-emacs/emacs.d/init.org15
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