diff options
| author | Jakob L. Kreuze | 2019-11-22 19:19:23 -0500 |
|---|---|---|
| committer | Jakob L. Kreuze | 2019-11-22 19:19:23 -0500 |
| commit | fc67a3ca081e68b1c275a844d6c1e32e2c688aea (patch) | |
| tree | 7d6012c38e4d9c1237d20757b99b0267893e4c00 | |
| parent | f6fdb93554e016e2e2f667aa4880888130fd7a27 (diff) | |
Reconfigure company to be less intrusive.
| -rw-r--r-- | jakob.org | 18 |
1 files changed, 15 insertions, 3 deletions
@@ -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) + ("<tab>" . company-complete-selection) + ("RET" . nil) + ("<return>" . nil))) #+END_SRC ** compile |