Skip to content
This repository

Improved JavaScript editing mode for GNU Emacs

tree: ee845b34ab

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 .gitignore added ignore list
Octocat-spinner-32 js2-imenu-extras.el
Octocat-spinner-32 js2-mode.el


An improved JavaScript mode for GNU Emacs. Forked from

For the list of user-visible changes, see Changes from the original mode.


$ git clone git://
$ cd js2-mode
$ emacs --batch -f batch-byte-compile js2-mode.el

Then put js2-mode.elc into your site-lisp directory.

In you emacs config:

(autoload 'js2-mode "js2-mode" nil t)
(add-to-list 'auto-mode-alist '("\\.js$" . js2-mode))

See for additional details.


If you find problems, please report them at

See Also

Some third-party modes that use the generated syntax tree:

Something went wrong with that request. Please try again.