-js2-mode
-========
+Description
+======
An improved JavaScript mode for GNU Emacs. Forked from <http://code.google.com/p/js2-mode/>.
-Install
-=======
+For some of the latest changes, see [latest user-visible changes](https://github.com/mooz/js2-mode/wiki/Latest-user-visible-changes).
+
+Installation
+======
$ git clone git://github.com/mooz/js2-mode.git
$ cd js2-mode
- $ emacs --batch --eval '(byte-compile-file "js2-mode.el")'
+ $ git checkout emacs24
+ $ emacs --batch -f batch-byte-compile js2-mode.el
-Then, place js2-mode.elc into your site-lisp directory.
+Then put js2-mode.elc into your site-lisp directory.
-In you emacs config:
+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 details.
-
-Differences between original js2-mode.el
-========================================
+See <http://code.google.com/p/js2-mode/wiki/InstallationInstructions> for
+additional details.
-Support for abbreviated destructuring assignments
--------------------------------------------------
+Emacs 22 and 23
+===============
- let {a, b} = {a: 10, b: 20}; // Abbreviated (Not supported in original js2-mode.el)
- let {a: a, b: b} = {a: 10, b: 20}; // Same as above (Supported in original js2-mode.el)
+This version requires Emacs 24. For a backward compatible version, check out the branch [emacs23](https://github.com/mooz/js2-mode/tree/emacs23).
- (function ({responseText}) { /* */ })(xhr); // As the argument of function
+Bugs
+====
-Support for expression closure in property value
-------------------------------------------------
+If you find problems, please report them at <http://github.com/mooz/js2-mode/issues>.
- let worker = {
- get age() 20,
- get sex() "male",
- fire: function () _fire()
- };
+See Also
+======
-Bugs
-====
+Some third-party modes that use the generated syntax tree:
-If you find problems, please report them to <http://github.com/mooz/js2-mode/issues>.
+* [js2-refactor](https://github.com/magnars/js2-refactor.el)
+* [skewer-mode](https://github.com/skeeto/skewer-mode)