diff options
-rw-r--r-- | custom/jao-custom-completion.el | 6 |
1 files 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 |