doomemacs/modules/lang/javascript
Henrik Lissner e5bd1fe55e Merge pull request #214 from orther/javascript-eslintd-fix
Add project-mode +javascript-eslintd-fix-mode
2017-10-04 15:50:27 +02:00
..
+screeps.el Lazy-load lang/javascript/+screeps.el 2017-06-18 23:43:07 +02:00
autoload.el Major optimization refactor, across the board 2017-06-09 00:47:45 +02:00
config.el Merge pull request #214 from orther/javascript-eslintd-fix 2017-10-04 15:50:27 +02:00
packages.el Add project-mode +javascript-eslintd-fix-mode 2017-09-28 01:55:47 -07: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