This package displays ElDoc documentations in a childframe. The childframe is selectable and scrollable with mouse, even though the cursor is hidden.
Get the file, add to load path, and
It is also available on MELPA.
Note: If you use Gnome and Emacs 27, set x-gtk-resize-child-frames
to resize-mode
to avoid breakage of childframe.
eldoc-box-hover-mode
eldoc-box-hover-at-point-mode
eldoc-box-hover-mode
except the childframe is displayed at point, instead of on the upper corner. Note that this mode brings a small but noticeable slow-down.
eldoc-box-help-at-point
C-g
disposes the childframe. This command simply displays what would be displayed by eldoc-doc-buffer
in a childframe, so it requires Emacs 28, and eldoc-box-hover-mode
doesn’t need to be on for this command to work.
eldoc-box-scroll-up/down
eldoc-box-border
:background
of this face for border color.
eldoc-box-body
eldoc-box-markdown-separator
: Face for the separator line (<br>
) in Markdown documentation.eldoc-box-buffer-hook
eldoc-box-frame-hook
eldoc-box-buffer-setup-hook
eldoc-box-buffer-hook
in the doc buffer. Each function is passed the source code buffer as the sole argument. Unlike eldoc-box-buffer-hook
, eldoc-box takes the value of this hook from the original buffer (that contains source code), not the doc buffer. This allows more flexible customization for this hook based on major modes.
eldoc-box-max-pixel-width
& eldoc-box-max-pixel-height
eldoc-box-only-multi-line
eldoc-box-cleanup-interval
eldoc-box-hover-at-point-mode
. In that mode, the childframe is cleared as soon as point moves.
eldoc-box-fringe-use-same-bg
eldoc-box-self-insert-command-list
eldoc-box-hover-at-point-mode
only keeps childframe display while you are typing (ie, when this-command
is self-insert-command
). But if you bind something else to your keys, eldoc-box can’t recognize it and will hide childframe when you type. Add your command to this list so eldoc-box won’t hide childframe when this command is called.
eldoc-box-lighter
eldoc-box-buffer-setup-function
eldoc-box-hover-display-frame-above-point
(add-hook 'eglot-managed-mode-hook #'eldoc-box-hover-mode t)
To keep eldoc from displaying documentation at point without enabling any minor mode above: (add-to-list 'eglot-ignored-server-capabilites :hoverProvider)
.
By default, eldoc-box tries to prettify the displayed markdown documentation as shown below. If you wish to disable them, remove the prettifier functions from eldoc-box-buffer-hook
. Report an issue if there are other things can be prettfied away.
To prettify Typescript error messages, add eldoc-box-prettify-ts-errors
to eldoc-box-buffer-setup-hook
in Typescript modes.
(add-hook 'eldoc-box-buffer-setup-hook #'eldoc-box-prettify-ts-errors 0 t)
This way, Eldoc-box will format and highlight the types and properties in error messages:
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4