Disable at-point mode when hover mode is disabled

This commit is contained in:
Yuan Fu 2019-07-11 20:26:30 +08:00
parent d413647eea
commit 8aa2b6d35a
No known key found for this signature in database
GPG Key ID: 56E19BC57664A442

View File

@ -135,6 +135,8 @@ It will be passes with two arguments: WIDTH and HEIGHT of the childframe.")
#'eldoc-box--eldoc-message-function) #'eldoc-box--eldoc-message-function)
(when eldoc-box-clear-with-C-g (when eldoc-box-clear-with-C-g
(advice-add #'keyboard-quit :before #'eldoc-box-quit-frame))) (advice-add #'keyboard-quit :before #'eldoc-box-quit-frame)))
(when eldoc-box-hover-at-point-mode
(eldoc-box-hover-at-point-mode -1))
(remove-function (local 'eldoc-message-function) #'eldoc-box--eldoc-message-function) (remove-function (local 'eldoc-message-function) #'eldoc-box--eldoc-message-function)
(advice-remove #'keyboard-quit #'eldoc-box-quit-frame) (advice-remove #'keyboard-quit #'eldoc-box-quit-frame)
;; if minor mode is turned off when childframe is visible ;; if minor mode is turned off when childframe is visible