blob: 863e66e4a82cd8c0011a8bb9617a3132c3bf4c3f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
(when (gx/maybe-require-package 'company)
(when (not (display-graphic-p))
(add-hook 'after-init-hook 'global-company-mode 'append)))
(with-eval-after-load 'company
(company-tng-configure-default)
(gx/diminish '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.01))
company-selection-wrap-around t)
(provide 'init-company)
|