- Search for all functions available on clojuredocs from within emacs
- Open the documentation + examples of a function inside emacs buffer
- Modify and evaluate examples from within the buffer (if clojure repl is available)
Read blog post here: https://oxal.org/blog/clojuredocs-emacs-intgeration-browser-elisp/
On calling M-x clojuredocs-lookup
On selecting an entry from the above minibuffer completion:
BONUS: change and evaluate the examples from this buffer if you are connected to a clojure repl!
Make sure you have request library installed.
This is what I have in my init.el
(use-package request)For elpaca use:
(use-package clojuredocs
:ensure (clojuredocs
:host github
:repo "oxalorg/clojuredocs.el"))For straight.el use
(use-package clojuredocs
:straight (clojuredocs
:type git
:host github
:repo "oxalorg/clojuredocs.el"))For first time setup run
M-x clojuredocs-downloador add this to your config
(unless (file-exists-p clojuredocs-cache-file)
(message "ClojureDocs cache file not found, downloading...")
(clojuredocs-download))then use M-x clojuredocs-lookup or bind it a hotkey.