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