Skip to content

Commit

Permalink
Disable at-point mode when hover mode is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
casouri committed Jul 11, 2019
1 parent d413647 commit 8aa2b6d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions eldoc-box.el
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8aa2b6d

Please sign in to comment.