Update config for tern to work properly

This commit is contained in:
Maciej 2018-09-28 15:56:56 +03:00
parent c48d9754c6
commit 14e4e9642a
Signed by: maciej
GPG key ID: 41D62D42D3B0D765
3 changed files with 4 additions and 2 deletions

View file

@ -1,5 +1,6 @@
;; Use js2-mode for javascript editing
(add-to-list 'auto-mode-alist '("\\.js\\'" . js2-mode))
(add-to-list 'auto-mode-alist '("\\.json\\'" . js2-mode))
;; Tern is used for completion
(add-hook 'js2-mode-hook 'tern-mode)