When editing common lisp with slime and emacs, I’d like a speedbar listing, alternately, top level definitions in the file I’m editing, and top level definitions in the package I’m looking at (which may be a superset of definitions in the file). Preferably sorted by type of definition (function, macro, constant, etc) and/or alphabetically.

Is there some emacs tooling for this? I haven’t found it.

  • bo-tato@alien.topB
    link
    fedilink
    English
    arrow-up
    0
    ·
    11 months ago

    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