summary refs log tree commit diff stats
path: root/tag-emacs/emacs.d
diff options
context:
space:
mode:
authorAlan Pearce2016-11-25 14:20:25 +0100
committerAlan Pearce2016-11-25 14:20:25 +0100
commit56328035acc6d62e1e0d5e94959d0e4d0ee8ec3d (patch)
tree4bc80ba7270bd7c5b7d821d9d9710c2c39383608 /tag-emacs/emacs.d
parent1aa802999dc54ca0c34764f3950635685cdc5fc5 (diff)
downloadnixfiles-56328035acc6d62e1e0d5e94959d0e4d0ee8ec3d.tar.lz
nixfiles-56328035acc6d62e1e0d5e94959d0e4d0ee8ec3d.tar.zst
nixfiles-56328035acc6d62e1e0d5e94959d0e4d0ee8ec3d.zip
Emacs: Configure JS IDE features
Diffstat (limited to 'tag-emacs/emacs.d')
-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