1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
Description: ensure js2-mode is used with JS file
This patch allows the package to keep the same behaviour as previous
versions.
Index: js2-mode/js2-mode.el
===================================================================
--- js2-mode.orig/js2-mode.el
+++ js2-mode/js2-mode.el
@@ -12422,6 +12422,9 @@ and variables NAMES will contain one ele
node) name)))
(if scope (js2-symbol-ast-node (js2-scope-get-symbol scope name)))))
+;;;###autoload
+(add-to-list 'auto-mode-alist '("\\.js$" . js2-mode))
+
(provide 'js2-mode)
;;; js2-mode.el ends here
|