diff --git a/eldoc-box.el b/eldoc-box.el index d4990d8..b3e1205 100644 --- a/eldoc-box.el +++ b/eldoc-box.el @@ -149,9 +149,11 @@ You can use C-g to hide the doc." eldoc-box-position-function #'eldoc-box--default-at-point-position-function) (setq-local eldoc-box-clear-with-C-g t) + (remove-hook 'pre-command-hook #'eldoc-pre-command-refresh-echo-area t) (add-hook 'pre-command-hook #'eldoc-box-quit-frame t t) (eldoc-box-hover-mode)) (eldoc-box-hover-mode -1) + (add-hook 'pre-command-hook #'eldoc-pre-command-refresh-echo-area t) (remove-hook 'pre-command-hook #'eldoc-box-quit-frame t) (kill-local-variable 'eldoc-box-position-function) (kill-local-variable 'eldoc-box-clear-with-C-g)))