From 27970b6c19f1b35a270cc32606638b777ffee50c Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Sun, 27 Feb 2022 00:42:49 +0800 Subject: Set company-idle-delay --- .emacs.d/lisp/init-misc.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.emacs.d/lisp/init-misc.el b/.emacs.d/lisp/init-misc.el index a0e26e2..e2ed462 100644 --- a/.emacs.d/lisp/init-misc.el +++ b/.emacs.d/lisp/init-misc.el @@ -80,7 +80,8 @@ '(emacs-lisp-mode go-mode ledger-mode sh-mode c++-mode)) :hook ((after-init . global-company-mode)) :config - (setq company-minimum-prefix-length 1)) + (setq company-minimum-prefix-length 1 + company-idle-delay (lambda () (if (company-in-string-or-comment) nil 0.3)))) (use-package projectile :init -- cgit v1.2.3