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.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/.emacs.d/lisp/init-company.el b/.emacs.d/lisp/init-company.el
index c096e86..6fc8cbc 100644
--- a/.emacs.d/lisp/init-company.el
+++ b/.emacs.d/lisp/init-company.el
@@ -1,6 +1,5 @@
-(use-package company :ensure t :defer t)
-
-(add-hook 'after-init-hook 'global-company-mode)
+(when (gx/maybe-require-package 'company)
+ (add-hook 'after-init-hook 'global-company-mode))
(setq company-global-modes
'(emacs-lisp-mode go-mode ledger-mode sh-mode c++-mode))