summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--tag-emacs/emacs.d/init.org3
1 files changed, 2 insertions, 1 deletions
diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org
index e933719..695fef9 100644
--- a/tag-emacs/emacs.d/init.org
+++ b/tag-emacs/emacs.d/init.org
@@ -1859,7 +1859,8 @@ completions, besides other IDE-like things.
               (setq tern-command (list (executable-find "tern")))
               (defun ap/enable-tern ()
                 (tern-mode 1))
-              (add-hook 'js2-mode-hook #'ap/enable-tern)))
+              (add-hook 'js2-mode-hook #'ap/enable-tern)
+              (add-hook 'web-mode-hook #'ap/enable-tern)))
 
   (with-eval-after-load 'tern
     (use-package company-tern))