Skip to content

Add imenu support for keyword definitions #75

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 10, 2025

Conversation

rrudakov
Copy link
Contributor

@rrudakov rrudakov commented Apr 8, 2025

Close #74

I decided to make it more generic and add support for all def forms with keywords. It might be useful for other libraries (like spec-tools for eample).

Before:

image

After:

image

I use imenu-flatten 'prefix option to display all items on the screenshots.


Before submitting a PR mark the checkboxes for the items you've done (if you
think a checkbox does not apply, then leave it unchecked):

  • The commits are consistent with our contribution guidelines.
  • You've added tests (if possible) to cover your change(s). Bugfix, indentation, and font-lock tests are extremely important!
  • You've run M-x checkdoc and fixed any warnings in the code you've written.
  • You've updated the changelog (if adding/changing user-visible functionality).
  • You've updated the readme (if adding/changing user-visible functionality).

Thanks!

@rrudakov rrudakov force-pushed the feature/74-imenu-keywords branch from 383e08b to ad21b18 Compare April 10, 2025 08:17
@rrudakov rrudakov force-pushed the feature/74-imenu-keywords branch from ad21b18 to d7b5016 Compare April 10, 2025 08:17
@bbatsov bbatsov merged commit a0b01b2 into clojure-emacs:main Apr 10, 2025
2 of 3 checks passed
@bbatsov
Copy link
Member

bbatsov commented Apr 10, 2025

Nice improvement! Thanks!

@rrudakov rrudakov deleted the feature/74-imenu-keywords branch April 10, 2025 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

imenu doesn't support spec
2 participants