Add warning if eldoc-box-hover-at-point-mode is enable too early
Early means eldoc-box-hover-mode is not enabled
This commit is contained in:
parent
b9a235b61c
commit
0649423e70
@ -145,6 +145,7 @@ It will be passes with two arguments: WIDTH and HEIGHT of the childframe.")
|
||||
"A convenient minor mode to display doc at point.
|
||||
You can use C-g to hide the doc."
|
||||
:lighter ""
|
||||
(if eldoc-box-hover-mode
|
||||
(if eldoc-box-hover-at-point-mode
|
||||
(progn (setq-local
|
||||
eldoc-box-position-function
|
||||
@ -155,7 +156,8 @@ You can use C-g to hide the doc."
|
||||
(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)))
|
||||
(kill-local-variable 'eldoc-box-clear-with-C-g))
|
||||
(message "Enable eldoc-box-hover-mode first")))
|
||||
|
||||
;;;; Backstage
|
||||
;;;;; Variable
|
||||
|
Loading…
Reference in New Issue
Block a user