From 42c176375a770b1a3d8473ea98ecf0ccdad14733 Mon Sep 17 00:00:00 2001 From: Yuan Fu Date: Wed, 26 Dec 2018 16:36:34 -0500 Subject: [PATCH] Remove eldoc pre command hook to eliminate flicker --- eldoc-box.el | 2 ++ 1 file changed, 2 insertions(+) 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)))