]> code.delx.au - gnu-emacs-elpa/commitdiff
Use \\' instead of $
authorDmitry Gutov <dgutov@yandex.ru>
Tue, 19 Feb 2013 15:16:33 +0000 (19:16 +0400)
committerDmitry Gutov <dgutov@yandex.ru>
Tue, 19 Feb 2013 15:16:33 +0000 (19:16 +0400)
README.md
js2-mode.el

index e7431f0939f9aaa30d92c5b94bd5bc76d0a3dbad..d66c69a906f2951c7d42340cc8882371d62e4498 100644 (file)
--- a/README.md
+++ b/README.md
@@ -17,7 +17,7 @@ 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))
+    (add-to-list 'auto-mode-alist '("\\.js\\'" . js2-mode))
 
 See <http://code.google.com/p/js2-mode/wiki/InstallationInstructions> for
 additional details.
index bab5bfc5251a9e4763bec50cbe18cce9ee553714..1aa1d7200885846ca18c3c5b547c4d0fd90e6c79 100644 (file)
@@ -49,7 +49,7 @@
 ;;
 ;; 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,
 ;; you must add it to the appropriate major-mode hook.  Normally this would be: