Emacs: Enable tern in web-mode
Alan Pearce alan.pearce@spotcap.com
Wed, 04 May 2016 11:51:25 +0200
1 files changed, 2 insertions(+), 1 deletions(-)
jump to
M tag-emacs/emacs.d/init.org → tag-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))