Munge internal docstrings into texinfo
Jelle Licht 6457a25aab notabug org-mode rendering issues? | преди 6 години | |
---|---|---|
COPYING | преди 6 години | |
README.org | преди 6 години | |
guix.scm | преди 6 години | |
texi-docstring-magic-geiser.el | преди 6 години | |
texi-docstring-magic.el | преди 6 години |
texi-docstring-magic
allows you to keep your docstrings in one
place, and have your texinfo documentation be kept in sync
semi-automatically.
It properly supports Emacs lisp, and half baked support for Guile is in the works.
Install via guix, or simply place in your load-path and simply add
(use-package texi-docstring-magic
:defer t
:load-path "/path/to/texi-docstring-magic")
(use-package texi-docstring-magic-geiser
:defer t
:load-path "/path/to/texi-docstring-magic")
... to your Emacs init file.
After loading all relevant Guile-symbols and namespaces, make sure to
register the active Geiser buffer using geiser/register-buffer
while
visiting the Geiser buffer. In your texi-file-visiting buffer, make
sure to have something like:
@c TEXI DOCSTRING MAGIC:GEISER:guile: myfn
Then, simply invoke M-x texi-docstring-magic-geiser
and watch the
magic unfold.
It would be lovely to not overwrite thing inadvertently by asking
for confirmation if we are replacing existing content. I think
Spacemacs' * -> replace in project
is a good example of this
behavior.
Instead of using a defconst
, it might make sense to move to
defcustom
.
Add modules/namespaces/prefixes to the magic docstring to distinguish between symbols from different namespaces.
Geiser already has built-in support for finding active REPL's. We
should adapt/re-use this logic to deprecate
geiser/register-buffer
.
Currently only 'guile
is supported as a Geiser backend. Depending
on how docstrings might be represented in the other backends, some
low-hanging fruit might be to also support other Geiser backends.