From 0cdde8db4819d0f3b1b8adc8b0339830c26a19f4 Mon Sep 17 00:00:00 2001 From: jao Date: Thu, 4 Aug 2022 01:05:25 +0100 Subject: completion: corfu in graphical displays --- custom/jao-custom-completion.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/custom/jao-custom-completion.el b/custom/jao-custom-completion.el index c5c3e52..4f9fb33 100644 --- a/custom/jao-custom-completion.el +++ b/custom/jao-custom-completion.el @@ -169,9 +169,9 @@ (defun corfu-in-minibuffer () (when (not (bound-and-true-p vertico--input)) (corfu-mode 1))) -(add-hook 'minibuffer-setup-hook #'corfu-in-minibuffer 1) - -(when (display-graphic-p) (global-corfu-mode 1)) +(when (display-graphic-p) + (add-hook 'minibuffer-setup-hook #'corfu-in-minibuffer 1) + (global-corfu-mode 1)) ;;; vertico (use-package vertico -- cgit v1.2.3