From fc67a3ca081e68b1c275a844d6c1e32e2c688aea Mon Sep 17 00:00:00 2001 From: Jakob L. Kreuze Date: Fri, 22 Nov 2019 19:19:23 -0500 Subject: Reconfigure company to be less intrusive. --- jakob.org | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/jakob.org b/jakob.org index 4efe4ce..c173979 100644 --- a/jakob.org +++ b/jakob.org @@ -2149,12 +2149,12 @@ overwritten if I'm using a proper tag indexer anyway. ** company -Start suggesting completions as soon as possible. +Start suggesting completions (almost) as soon as possible. #+BEGIN_SRC elisp (use-package company :config - (setq company-idle-delay 0 + (setq company-idle-delay 0.1 company-minimum-prefix-length 3) #+END_SRC @@ -2167,7 +2167,19 @@ instead of those used for minibuffer next/previous. ("M-n" . nil) ("M-p" . nil) ("C-n" . company-select-next) - ("C-p" . company-select-previous))) + ("C-p" . company-select-previous)) +#+END_SRC + +And have ~tab~ responsible for completion rather than ~ret~, so that company isn't +quite as in-the-way. + +#+BEGIN_SRC elisp + :bind + (:map company-active-map + ("TAB" . company-complete-selection) + ("" . company-complete-selection) + ("RET" . nil) + ("" . nil))) #+END_SRC ** compile -- cgit v1.3