diff options
author | jao <jao@gnu.org> | 2021-07-23 00:26:08 +0100 |
---|---|---|
committer | jao <jao@gnu.org> | 2021-07-23 00:26:08 +0100 |
commit | 16c81a3f4c77f0f3b484b76830c78adc7d34dae5 (patch) | |
tree | 43a0f5cc7bb35429d505561dc7953fb60b1321f9 | |
parent | ff800d1d3fae9ac1bc1bd3723364f89776632148 (diff) | |
download | elibs-16c81a3f4c77f0f3b484b76830c78adc7d34dae5.tar.gz elibs-16c81a3f4c77f0f3b484b76830c78adc7d34dae5.tar.bz2 |
corfun tweaks (trying again auto)
-rw-r--r-- | completion.org | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/completion.org b/completion.org index 597fcb9..a56f1fb 100644 --- a/completion.org +++ b/completion.org @@ -35,22 +35,16 @@ (use-package corfu :ensure t :demand t - :init (setq corfu-cycle t - corfu-count 10 - corfu-quit-no-match nil - corfu-auto nil + :init (setq corfu-echo-documentation 0.25 + corfu-cycle t + corfu-count 15 + corfu-quit-no-match t ; setting this to nil + corfu-auto t ; and this to nil is another option + corfu-commit-predicate nil corfu-min-width 20 corfu-max-width 100 corfu-excluded-modes '(eshell-mode)) :config - (advice-add #'corfu--goto :after #'corfu--show-docsig) - - (defun corfu--show-docsig (_index) - (let ((message-log-max nil)) - (if-let (fun (and (>= corfu--index 0) - (plist-get corfu--extra-properties :company-docsig))) - (message "%s" (funcall fun (nth corfu--index corfu--candidates))) - (message "")))) :bind (:map corfu-map ("TAB" . corfu-next) |