doomemacs/modules/lang/javascript
Henrik Lissner 1a452b6842
💥 Change first arg of load! macro
load!'s first argument is no longer a symbol (that will cause
void-variable errors now) to save on unnecessary interning and simplify
compile-time logic. It accepts any valid form that evaluates to a string
now.

If you use load!, you need to change its argument to a string!

e.g. (load! +my-module) => (load! "+my-module")
2018-05-27 12:52:28 +02:00
..
+screeps.el lang/javascript: major refactor 2017-10-04 18:02:00 +02:00
autoload.el lang/javascript: refactor & document +javascript/cleanup-tide-processes 2018-05-09 12:49:09 +02:00
config.el 💥 Change first arg of load! macro 2018-05-27 12:52:28 +02:00
packages.el lang/javascript: refactor company/lookup config; bring back xref-js2 2018-04-22 23:57:32 -04:00
README.org lang/javascript: remove mention of tern in README 2018-04-18 18:05:44 -04:00

:lang javascript

This module adds Javascript support.

  • Code completion (tide)
  • 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

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