1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
From: Vincent Bernat <bernat@debian.org>
Date: Wed, 27 Jan 2021 08:42:34 -0400
Subject: ensure js2-mode is used with JS file
This patch allows the package to keep the same behaviour as previous
versions.
---
js2-mode.el | 3 +++
1 file changed, 3 insertions(+)
diff --git a/js2-mode.el b/js2-mode.el
index a71196b..2764b92 100644
--- a/js2-mode.el
+++ b/js2-mode.el
@@ -12988,6 +12988,9 @@ and variables NAMES will contain one element."
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
|