]> code.delx.au - gnu-emacs-elpa/blobdiff - README.md
Parse generator methods better
[gnu-emacs-elpa] / README.md
index 553606bdd53ad9fd2d294137a1f61280fe9228ee..cbce9c37c376c9499715501f781c5b37c611f7bf 100644 (file)
--- a/README.md
+++ b/README.md
@@ -1,45 +1,55 @@
-js2-mode
-========
+About [![Build Status](https://travis-ci.org/mooz/js2-mode.svg?branch=master)](https://travis-ci.org/mooz/js2-mode) [![MELPA](https://melpa.org/packages/js2-mode-badge.svg)](https://melpa.org/#/js2-mode)
+======
 
-An improved JavaScript mode for GNU Emacs. Forked from <http://code.google.com/p/js2-mode/>.
+Improved JavaScript editing mode for GNU Emacs ([description here](http://elpa.gnu.org/packages/js2-mode.html)).
 
-Install
-=======
+For some of the latest changes, see [latest user-visible changes](https://github.com/mooz/js2-mode/wiki/Latest-user-visible-changes).
 
-    $ git clone git://github.com/mooz/js2-mode.git
-    $ cd js2-mode
-    $ emacs --batch --eval '(byte-compile-file "js2-mode.el")'
+Installation
+======
 
-Then, place js2-mode.elc into your site-lisp directory.
+The stable versions are hosted at [GNU ELPA](http://elpa.gnu.org/)
+(<kbd>M-x list-packages</kbd>).
 
-In you emacs config:
+You can also install the latest development version from
+[MELPA](https://melpa.org/#/getting-started).
 
-    (autoload 'js2-mode "js2-mode" nil t)
-    (add-to-list 'auto-mode-alist '("\\.js$" . js2-mode))
+Emacs 22 and 23
+===============
 
-See <http://code.google.com/p/js2-mode/wiki/InstallationInstructions> for details.
+This version requires Emacs 24 and `cl-lib` (either built-in or from GNU ELPA above).
+For a backward compatible version, check out the branch
+[emacs23](https://github.com/mooz/js2-mode/tree/emacs23).
 
-Differences between original js2-mode.el
-========================================
+Bugs
+====
 
-Support for abbreviated destructuring assignments
--------------------------------------------------
+* See broken syntax highlighting and timer errors? Recently upgraded
+Emacs from version 24.2 or earlier?
 
-    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)
+* Try
+[reinstalling or byte-recompiling](https://github.com/mooz/js2-mode/issues/72)
+the package.
 
-    (function ({responseText}) { /* */ })(xhr); // As the argument of function
+Please report problems at <http://github.com/mooz/js2-mode/issues>.
 
-Support for expression closure in property value
-------------------------------------------------
+Contributing
+======
 
-    let worker = {
-        get age() 20,
-        get sex() "male",
-        fire: function () _fire()
-    };
+`js2-mode` is subject to the same
+[copyright assignment](http://www.gnu.org/prep/maintain/html_node/Copyright-Papers.html)
+policy as Emacs itself, `org-mode`, `CEDET` and other packages in
+[GNU ELPA](http://elpa.gnu.org/packages/).
 
-Bugs
-====
+Any
+[legally significant](http://www.gnu.org/prep/maintain/html_node/Legally-Significant.html#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.
+
+See Also
+======
+
+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)