From 9e1754e8e2bc4fd3957df8e1d127f8e7e40dc70e Mon Sep 17 00:00:00 2001 From: jao Date: Wed, 21 Sep 2022 22:23:38 +0100 Subject: stop eldoc annoying us with corfu in minibuffer --- custom/jao-custom-completion.el | 4 +++- init.el | 7 +++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/custom/jao-custom-completion.el b/custom/jao-custom-completion.el index 089da6b..8e8e7fc 100644 --- a/custom/jao-custom-completion.el +++ b/custom/jao-custom-completion.el @@ -116,7 +116,9 @@ ("C-p" . jao-corfu-quit-or-previous))) (defun corfu-in-minibuffer () - (when (not (bound-and-true-p vertico--input)) (corfu-mode 1))) + (when (not (bound-and-true-p vertico--input)) + (setq-local corfu-echo-documentation nil) + (corfu-mode 1))) (when (display-graphic-p) (add-hook 'minibuffer-setup-hook #'corfu-in-minibuffer 1) diff --git a/init.el b/init.el index dc8b67a..30c3457 100644 --- a/init.el +++ b/init.el @@ -393,12 +393,11 @@ ;;;; eldoc (use-package eldoc - :init (setq eldoc-mode-line-string nil + :init (setq eldoc-minor-mode-string nil eldoc-echo-area-use-multiline-p t - eldoc-echo-area-prefer-doc-buffer nil + eldoc-echo-area-prefer-doc-buffer t eldoc-display-functions '(eldoc-display-in-echo-area)) - :config (global-eldoc-mode 1) - :diminish ((eldoc-mode . ""))) + :config (global-eldoc-mode 1)) ;; bookmarks (setq bookmark-default-file "~/.emacs.d/emacs.bmk" -- cgit v1.2.3