From 8145d2218634ccb212fadb2fe00be11795b25a72 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 4 May 2016 11:51:25 +0200 Subject: Emacs: Enable tern in web-mode --- tag-emacs/emacs.d/init.org | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)) -- cgit 1.4.1