diff options
author | Alan Pearce | 2016-05-04 11:51:25 +0200 |
---|---|---|
committer | Alan Pearce | 2016-05-04 11:51:25 +0200 |
commit | 8145d2218634ccb212fadb2fe00be11795b25a72 (patch) | |
tree | 5fffbfa68249f4a6ef498c9db3e4050938634e2f /tag-emacs/emacs.d | |
parent | 124df1cd0d339ae3e8fb164e5b7b0450b5b3a6d4 (diff) | |
download | nixfiles-8145d2218634ccb212fadb2fe00be11795b25a72.tar.lz nixfiles-8145d2218634ccb212fadb2fe00be11795b25a72.tar.zst nixfiles-8145d2218634ccb212fadb2fe00be11795b25a72.zip |
Emacs: Enable tern in web-mode
Diffstat (limited to 'tag-emacs/emacs.d')
-rw-r--r-- | tag-emacs/emacs.d/init.org | 3 |
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)) |