From ab413f92521dc4bb5eceeed1788e93289e6d6b49 Mon Sep 17 00:00:00 2001 From: Andrew Scott Date: Fri, 25 Mar 2022 23:37:52 -0400 Subject: [PATCH] Minor changes to js2-mode --- emacs.d/init.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/emacs.d/init.el b/emacs.d/init.el index c59f654..78fdb39 100644 --- a/emacs.d/init.el +++ b/emacs.d/init.el @@ -330,9 +330,9 @@ (use-package js2-mode :config - (add-to-list 'magic-mode-alist '("#!/usr/bin/env node" . js2-mode)) + (add-to-list 'interpreter-mode-alist '("#!/usr/bin/env node" . js2-mode)) (setq js2-mode-show-strict-warnings nil) - :hook (js-mode . js2-minor-mode)) + :hook ('js-mode-hook 'js2-minor-mode)) ;; LaTeX