Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Improved JavaScript editing mode for GNU Emacs
Emacs Lisp

This branch is 4 commits ahead, 194 commits behind master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
tests
.gitignore
Makefile
README.md
js2-imenu-extras.el
js2-mode.el

README.md

Description

An improved JavaScript mode for GNU Emacs. Forked from http://code.google.com/p/js2-mode/.

For some of the latest changes, see latest user-visible changes.

Installation

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

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

In your emacs config:

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

See http://code.google.com/p/js2-mode/wiki/InstallationInstructions for additional details.

Emacs 22 and 23

This version requires Emacs 24. For a backward compatible version, check out the branch emacs23.

Bugs

If you find problems, please report them at http://github.com/mooz/js2-mode/issues.

See Also

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

Something went wrong with that request. Please try again.