summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2016-05-03 15:51:14 +0200
committerAlan Pearce2016-05-03 15:51:14 +0200
commitc7a09150f06f60ee8be583437a145dff25ee48c2 (patch)
treeb6df9338dd2e8ad7977fd76ef5f3a5abe40481e1
parent664350b7ac450e80d58507b6a178231047896de2 (diff)
downloadnixfiles-c7a09150f06f60ee8be583437a145dff25ee48c2.tar.lz
nixfiles-c7a09150f06f60ee8be583437a145dff25ee48c2.tar.zst
nixfiles-c7a09150f06f60ee8be583437a145dff25ee48c2.zip
Emacs: Open scripts with node shebang in js2-mode
-rw-r--r--tag-emacs/emacs.d/init.org1
1 files changed, 1 insertions, 0 deletions
diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org
index 9e6b3189..79036576 100644
--- a/tag-emacs/emacs.d/init.org
+++ b/tag-emacs/emacs.d/init.org
@@ -1821,6 +1821,7 @@ it though
   (use-package js2-mode
     :mode (("\\.js\\'" . js2-mode)
            ("\\.jsx\\'" . js2-jsx-mode))
+    :interpreter ("node" . js2-mode)
     :functions js2-next-error
     :config (progn
               (defun ap/javascript-setup ()