doomemacs/modules/lang/javascript
Henrik Lissner 31a4244686
Rethink what Doom loads at startup and manually
Better to simply load what we need, when we need it, rather than set up
autoloads for every litte thing.
2018-01-07 00:15:57 -05:00
..
+screeps.el lang/javascript: major refactor 2017-10-04 18:02:00 +02:00
autoload.el Rethink what Doom loads at startup and manually 2018-01-07 00:15:57 -05:00
config.el Update :jump => :lookup 2018-01-05 23:57:48 -05:00
packages.el 💥 Replace feature/jump with feature/lookup 2018-01-04 17:11:54 -05:00
README.org Add READMEs for several modules 2017-08-21 21:51:29 +02:00

:lang javascript

This module adds Javascript support.

  • Code completion (tern)
  • REPL support (nodejs-repl)
  • Refactoring commands (js2-refactor)
  • Syntax checking (flycheck)
  • Browser code injection with skewer-mode
  • Coffeescript & JSX support
  • Jump-to-definitions and references support (xref)

Table of Contents   TOC

Install

Node & NPM

To get started with Javascript, you'll need node and its package manager, NPM, installed.

MacOS

brew install node

Arch Linux

sudo pacman --needed --noconfirm -S nodejs npm

Dependencies

This module optionally requires tern for code completion.

npm -g install tern

Appendix

Commands

command key / ex command description
+javascript/repl :repl Open the NodeJS REPL (or send the current selection to it)
+javascript/skewer-this-buffer SPC m S Attaches a browser to the current buffer