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.el10
1 files changed, 10 insertions, 0 deletions
diff --git a/.emacs.d/lisp/init-company.el b/.emacs.d/lisp/init-company.el
new file mode 100644
index 0000000..c096e86
--- /dev/null
+++ b/.emacs.d/lisp/init-company.el
@@ -0,0 +1,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)