X-Git-Url: https://code.delx.au/gnu-emacs-elpa/blobdiff_plain/05b6d0f82736b33706a3c6ebd16a23b5361911ff..ebecf964123ab7b4e6deec85aa2f2fd58eddea29:/packages/js2-mode/js2-mode.el diff --git a/packages/js2-mode/js2-mode.el b/packages/js2-mode/js2-mode.el index 702b32c93..3568f189d 100644 --- a/packages/js2-mode/js2-mode.el +++ b/packages/js2-mode/js2-mode.el @@ -1,11 +1,13 @@ ;;; js2-mode.el --- Improved JavaScript editing mode -;; Copyright (C) 2009, 2011, 2012 Free Software Foundation, Inc. +;; Copyright (C) 2009, 2011-2013 Free Software Foundation, Inc. ;; Author: Steve Yegge ;; mooz ;; Dmitry Gutov -;; Version: 1.1 +;; URL: https://github.com/mooz/js2-mode/ +;; http://code.google.com/p/js2-mode/ +;; Version: 20130619 ;; Keywords: languages, javascript ;; Package-Requires: ((emacs "24.1")) @@ -47,13 +49,17 @@ ;; ;; To install it as your major mode for JavaScript editing: -;; (add-to-list 'auto-mode-alist '("\\.js$" . js2-mode)) +;; (add-to-list 'auto-mode-alist '("\\.js\\'" . js2-mode)) -;; Alternately, to install it as a minor mode just for JavaScript linting, +;; Alternatively, to install it as a minor mode just for JavaScript linting, ;; you must add it to the appropriate major-mode hook. Normally this would be: ;; (add-hook 'js-mode-hook 'js2-minor-mode) +;; You may also want to hook it in for shell scripts running via node.js: + +;; (add-to-list 'interpreter-mode-alist '("node" . js2-mode)) + ;; To customize how it works: ;; M-x customize-group RET js2-mode RET @@ -73,6 +79,10 @@ ;; This means that `js2-mode' is currently only useful for editing JavaScript ;; files, and not for editing JavaScript within