From 8aa2b6d35a557864ff64762774fd5b4960cbeff0 Mon Sep 17 00:00:00 2001 From: Yuan Fu Date: Thu, 11 Jul 2019 20:26:30 +0800 Subject: [PATCH] Disable at-point mode when hover mode is disabled --- eldoc-box.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eldoc-box.el b/eldoc-box.el index 94119bb..e338286 100644 --- a/eldoc-box.el +++ b/eldoc-box.el @@ -135,6 +135,8 @@ It will be passes with two arguments: WIDTH and HEIGHT of the childframe.") #'eldoc-box--eldoc-message-function) (when eldoc-box-clear-with-C-g (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) (advice-remove #'keyboard-quit #'eldoc-box-quit-frame) ;; if minor mode is turned off when childframe is visible