From ab34d613c14bfa0ed5449979e829819a0c69edef Mon Sep 17 00:00:00 2001 From: David Florness Date: Tue, 20 Dec 2016 23:31:36 -0600 Subject: [PATCH] Auto install tern for company --- init.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/init.el b/init.el index 4d16dc7..87b882e 100644 --- a/init.el +++ b/init.el @@ -78,12 +78,16 @@ (require 'company-c-headers) (add-to-list 'company-backends 'company-c-headers) +;;; Install company backend for javascript +(package-install 'company-tern) +(add-to-list 'company-backends 'company-tern) + (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. - '(package-selected-packages (quote (company)))) + '(package-selected-packages (quote (company-tern company)))) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. -- 2.38.4