all repos — archive/dotfiles @ 8145d2218634ccb212fadb2fe00be11795b25a72

Superseded by nixfiles

Emacs: Enable tern in web-mode
Alan Pearce alan.pearce@spotcap.com
Wed, 04 May 2016 11:51:25 +0200
commit

8145d2218634ccb212fadb2fe00be11795b25a72

parent

124df1cd0d339ae3e8fb164e5b7b0450b5b3a6d4

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M tag-emacs/emacs.d/init.orgtag-emacs/emacs.d/init.org
@@ -1859,7 +1859,8 @@ :config (progn               (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))