Additional Eldoc and completion functions for emacs-lisp-mode
.
Emacs >= 26.1 is required.
Download the source code and put it wherever you like, e.g. into ~/.emacs.d/elisp-eldoc-flags/
git clone https://github.com/KarimAziev/elisp-eldoc-flags.git ~/.emacs.d/elisp-eldoc-flags/
Add the downloaded directory to the load path:
(add-to-list 'load-path "~/.emacs.d/elisp-eldoc-flags/")
(require 'elisp-eldoc-flags)
(add-hook 'emacs-lisp-mode-hook #'elisp-eldoc-flags-add-eldoc-functions)
(use-package elisp-eldoc-flags
:straight (elisp-eldoc-flags
:repo "KarimAziev/elisp-eldoc-flags"
:type git
:host github)
:hook ((emacs-lisp-mode . elisp-eldoc-flags-add-eldoc-functions)
(emacs-lisp-mode . elisp-eldoc-flags-add-completion-functions)))
Add extra functions to eldoc-documentation-functions
. This functions are listed in the custom variable elisp-eldoc-flags-functions
with default value:
elisp-eldoc-flags-describe-interactive-flag
Describe arg-descriptor insideinteractive
calls.elisp-eldoc-flags-describe-format-flag
Describe %-sequences inside string.
Remove elisp-eldoc-flags-functions
from eldoc-documentation-functions
.
Add extra functions to completions at point. This functions are listed in the custom variable elisp-eldoc-flags-completions-functions
with default value:
elisp-eldoc-flags-interactive-completion-at-point
which completes inside string in theinteractive
form.
Remove elisp-eldoc-flags-completions-functions
from completions at point.