aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d/lisp/init-company.el
diff options
context:
space:
mode:
Diffstat (limited to '.emacs.d/lisp/init-company.el')
-rw-r--r--.emacs.d/lisp/init-company.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/.emacs.d/lisp/init-company.el b/.emacs.d/lisp/init-company.el
index 863e66e..5f5ac5e 100644
--- a/.emacs.d/lisp/init-company.el
+++ b/.emacs.d/lisp/init-company.el
@@ -1,8 +1,10 @@
(when (gx/maybe-require-package 'company)
+ (autoload #'global-company-mode "company" nil t)
(when (not (display-graphic-p))
- (add-hook 'after-init-hook 'global-company-mode 'append)))
+ (add-hook 'after-init-hook #'global-company-mode 'append)))
(with-eval-after-load 'company
+ (require 'company-tng)
(company-tng-configure-default)
(gx/diminish 'company-mode))