diff options
| -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 |