Remove eldoc pre command hook to eliminate flicker

This commit is contained in:
Yuan Fu 2018-12-26 16:36:34 -05:00
parent 1d9b0bb000
commit 42c176375a
No known key found for this signature in database
GPG Key ID: 1CF5ECABEC37A901

View File

@ -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)))