From 16c81a3f4c77f0f3b484b76830c78adc7d34dae5 Mon Sep 17 00:00:00 2001 From: jao Date: Fri, 23 Jul 2021 00:26:08 +0100 Subject: corfun tweaks (trying again auto) --- completion.org | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'completion.org') 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) -- cgit v1.2.3