summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2016-05-04 11:51:25 +0200
committerAlan Pearce2016-05-04 11:51:25 +0200
commit8145d2218634ccb212fadb2fe00be11795b25a72 (patch)
tree5fffbfa68249f4a6ef498c9db3e4050938634e2f
parent124df1cd0d339ae3e8fb164e5b7b0450b5b3a6d4 (diff)
downloadnixfiles-8145d2218634ccb212fadb2fe00be11795b25a72.tar.lz
nixfiles-8145d2218634ccb212fadb2fe00be11795b25a72.tar.zst
nixfiles-8145d2218634ccb212fadb2fe00be11795b25a72.zip
Emacs: Enable tern in web-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 e933719f..695fef92 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))