Godot API browsing using eww

This commit is contained in:
Josef Vlach
2020-05-24 20:52:12 +01:00
parent 46c17d352f
commit 59753af564
4 changed files with 82 additions and 0 deletions

View File

@@ -148,6 +148,19 @@ command in your shell to install it:
pip3 install gdtoolkit
```
### Browsing Godot API with [eww](https://www.gnu.org/software/emacs/manual/html_node/emacs/EWW.html)
With a point on build-in class you can press `C-c C-r C-o` to open [eww](https://www.gnu.org/software/emacs/manual/html_node/emacs/EWW.html) browser with an api documentation for that class.
Using `C-c C-r C-a` opens main Godot API page in eww.
For convenience add `gdscript-documentation-rename-eww-buffer` to `eww-after-render-hook`. This will rename eww buffer(s) visiting Godot documentation from generic name to one which contains page title.
```
(use-package gdscript-mode
:hook ((eww-after-render . gdscript-documentation-rename-eww-buffer)))
```
## Customization
To find all GDScript-mode settings, press `M-x customize` and search for "gdscript".