aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d/lisp/init-company.el
blob: c096e8616dcafa3148fc09c4fd81152260bc7894 (plain)
1
2
3
4
5
6
7
8
9
10
(use-package company :ensure t :defer t)

(add-hook 'after-init-hook 'global-company-mode)

(setq company-global-modes
    '(emacs-lisp-mode go-mode ledger-mode sh-mode c++-mode))
(setq company-minimum-prefix-length 1
      company-idle-delay (lambda () (if (company-in-string-or-comment) nil 0.3)))

(provide 'init-company)