summary refs log tree commit diff
path: root/emacs
diff options
context:
space:
mode:
Diffstat (limited to 'emacs')
-rw-r--r--emacs/custom/my-completion.el15
1 files changed, 11 insertions, 4 deletions
diff --git a/emacs/custom/my-completion.el b/emacs/custom/my-completion.el
index fb6ce66..e66f0ce 100644
--- a/emacs/custom/my-completion.el
+++ b/emacs/custom/my-completion.el
@@ -7,7 +7,7 @@
 (require 'cape)
 (require 'consult)
 (require 'corfu)
-(require 'corfu-doc)
+(require 'corfu-popupinfo)
 (require 'orderless)
 (require 'marginalia)
 (require 'savehist)
@@ -35,6 +35,16 @@
 
 (advice-add #'corfu-insert :after #'corfu-send-shell)
 
+;; enable corfu popup mode
+(corfu-popupinfo-mode t)
+
+;; transition quickly
+(setq corfu-popupinfo-delay '(0.25 . 0.1))
+
+;; don't hide the popup when
+;; transitioning between candidates
+(setq corfu-popupinfo-hide nil)
+
 ;; Silence the pcomplete capf, no errors or messages!
 (advice-add 'pcomplete-completions-at-point :around #'cape-wrap-silent)
 
@@ -72,9 +82,6 @@
 (global-set-key (kbd "M-s L") 'consult-line-multi)
 
 ;;; hooks
-;; display a documentation popup for completion candidate when using
-;; corfu
-(add-hook 'corfu-mode-hook #'corfu-doc-mode)
 
 (provide 'my-completion)