]> code.delx.au - gnu-emacs-elpa/blobdiff - js2-mode.el
Use \\' instead of $
[gnu-emacs-elpa] / js2-mode.el
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: