4 An improved JavaScript mode for GNU Emacs. Forked from <http://code.google.com/p/js2-mode/>.
9 $ git clone git://github.com/mooz/js2-mode.git
11 $ emacs --batch --eval '(byte-compile-file "js2-mode.el")'
13 Then, place js2-mode.elc into your site-lisp directory.
17 (autoload 'js2-mode "js2-mode" nil t)
18 (add-to-list 'auto-mode-alist '("\\.js$" . js2-mode))
20 See <http://code.google.com/p/js2-mode/wiki/InstallationInstructions> for details.
22 Differences between original js2-mode.el
23 ========================================
25 Support for abbreviated destructuring assignments
26 -------------------------------------------------
28 let {a, b} = {a: 10, b: 20}; // Abbreviated (Not supported in original js2-mode.el)
29 let {a: a, b: b} = {a: 10, b: 20}; // Same as above (Supported in original js2-mode.el)
31 (function ({responseText}) { /* */ })(xhr); // As the argument of function
33 Support for expression closure in property value
34 ------------------------------------------------
39 fire: function () _fire()
45 If you find problems, please report them to <http://github.com/mooz/js2-mode/issues>.