all repos — nixfiles @ 56328035acc6d62e1e0d5e94959d0e4d0ee8ec3d

System and user configuration, managed by nix and home-manager

Emacs: Configure JS IDE features

Alan Pearce
commit

56328035acc6d62e1e0d5e94959d0e4d0ee8ec3d

parent

1aa802999dc54ca0c34764f3950635685cdc5fc5

1 file changed, 15 insertions(+), 0 deletions(-)

jump to
M tag-emacs/emacs.d/init.orgtag-emacs/emacs.d/init.org
@@ -1871,6 +1871,21 @@ (setq js2-basic-offset 2
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