From 56328035acc6d62e1e0d5e94959d0e4d0ee8ec3d Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 25 Nov 2016 14:20:25 +0100 Subject: Emacs: Configure JS IDE features --- tag-emacs/emacs.d/init.org | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'tag-emacs') diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org index d5a6a21..089f986 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 -- cgit 1.4.1