imenu and its augmentations via imenu-list or ivy might be helpful.
Emacs
A community for the timeless and infinitely powerful editor. Want to see what Emacs is capable of?!
Get Emacs
Rules
- Posts should be emacs related
- Be kind please
- Yes, we already know: Google results for "emacs" and "vi" link to each other. We good.
Emacs Resources
Emacs Tutorials
- Beginner’s Guide to Emacs
- Absolute Beginner's Guide to Emacs
- How to Learn Emacs: A Hand-drawn One-pager for Beginners
Useful Emacs configuration files and distributions
Quick pain-saver tip
I'm using doom emacs pretty much it's default setup for common lisp, and SPC-s-i
is bound to consult-imenu
which gives a nice fuzzy searchable listing of all top level definitions in the current file and their type (function, variable, etc).
SPC-m-h-p
or sly-apropos-package
will show all public symbols in a package with their docstrings. With a prefix argument it will include all private symbols also, with clickable links to go to their definition.
What I don't know is if there's a way to view all top level definitions in a whole asdf system
Are the sly presentations in a speedbar or special buffer of some kind, or just listed in the REPL?
It looks like this, it opens a vertical popup at the bottom of the screen with fuzzy completion. Well that's just cause doom is using Vertico for completion by default, I assume with other completion frameworks or configuration it'll look different.
That's the closest approximation (so far) of what I was looking for, though unfortunately I'm a slime user and haven't yet tried sly.
I'm actually surprised there isn't speedbar for CL definitions already in slime, somehow I figured it was an obvious thing I was missing, since you see that sort of thing all the time in IDE's.
I digged in a little and it seems that imenu default for imenu-prev-index-position-function
is set to beginning-of-defun
which is how this is working, I don't think it has anything to do with sly or slime. Then consult-imenu
gives a nicer UI for imenu. I just realized there is also a consult-line-multi
which will do for all buffers in the current project, which is what I was looking for. It also supports narrowing to show just functions or just variables or just macros or whatever.
similar to the description, but gives a web page: https://github.com/mmontone/cl-livedocs with full-text search, and https://github.com/lokedhs/docbrowser
(also: slime-edit-definition, with a prefix argument, allows to go to the definition of any symbol)
Nice tips for future use though not quite what I'm looking for (though the prefix tip is one I'll have to remember).
Is that just hyerspec?
You could alternatively install info version from an old Wiegley's thing called ready-lisp. Then you have it directly in Emacs, working as any other info manual.
Another option is to open the web version of files in eww. It is then still in Emacs, so you skip the web server and to switch between Emacs and web browser; if that is a feature for you.
nope these 2 links don't give the hyperspec, they build a web view of the systems, packages and symbols (classes macros functions etc) in the current image.
Aha, ok. Thank you for the info, I'll take a look at them too then, sounds useful 😀