I have the following code to replace default eldoc display function:
(defun my-eldoc-display-message-momentary (format-string &rest args) "Display eldoc message near point." (when format-string ;; (pos-tip-show (apply 'format format-string args)) (momentary-string-display (apply 'format format-string args) (save-excursion (forward-line) (point)) ) )) (setq eldoc-message-function #'my-eldoc-display-message-momentary)
But it does not work smoothly.
- it display slowly
- the exit-char for
momentary-string-displayshould be excepted in most programming code inputting (not SPC, not [a-zA-Z], not [*,-+=!] etc)
Hope someone can improve it.