summaryrefslogtreecommitdiff
path: root/debian/patches/autoload-auto-mode-alist.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/autoload-auto-mode-alist.patch')
-rw-r--r--debian/patches/autoload-auto-mode-alist.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/debian/patches/autoload-auto-mode-alist.patch b/debian/patches/autoload-auto-mode-alist.patch
new file mode 100644
index 0000000..bfafacc
--- /dev/null
+++ b/debian/patches/autoload-auto-mode-alist.patch
@@ -0,0 +1,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