For some of the latest changes, see latest user-visible changes.
The stable versions are hosted at GNU ELPA (M-x list-packages).
You can also install the latest development version from MELPA.
Emacs 24.1+ and
cl-lib (either built-in or installed from GNU ELPA).
React and JSX
The currently recommended solution is to install Emacs 27 (you can build from
or e.g. install a snapshot from a
js-mode as the major mode. To make use of the JS2 AST and the
packages that integrate with it, we recommend
the corresponding instructions in the
js-mode in Emacs 27 includes full support for syntax highlighting
and indenting of JSX syntax.
rjsx-mode is an alternative option which comes with certain tradeoffs.
See broken syntax highlighting and timer errors? Recently upgraded Emacs from version 24.2 or earlier? Try reinstalling or byte-recompiling the package.
Any indentation problems should be reported with
M-x report-emacs-bug(please try reproducing them with
js-modefirst, for clarity). Starting with Emacs 25,
js2-modedelegates indentation to the indentation engine of
Please report other problems at http://github.com/mooz/js2-mode/issues.
js2-mode is subject to the same
policy as Emacs itself,
CEDET and other packages in
Any legally significant contributions can only be accepted after the author has completed their paperwork. Please ask for the request form, and we'll send it to you.
Some third-party modes that use the generated syntax tree: