aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-02-27 00:42:49 +0800
committerGuangxiong Lin <[email protected]>2022-02-27 00:42:49 +0800
commit27970b6c19f1b35a270cc32606638b777ffee50c (patch)
tree5eb2ab0803cebab57b81bb1b724a7000c6812928
parent83f74748a9d3c2e5de29080ae8e0281bcad8d944 (diff)
downloaddotfiles-27970b6c19f1b35a270cc32606638b777ffee50c.tar.gz
dotfiles-27970b6c19f1b35a270cc32606638b777ffee50c.tar.bz2
dotfiles-27970b6c19f1b35a270cc32606638b777ffee50c.zip
Set company-idle-delay
-rw-r--r--.emacs.d/lisp/init-misc.el3
1 files changed, 2 insertions, 1 deletions
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