TGViewer
/r/emacs /r/emacs @r_emacs · 79 subscribers
Post #28620 9
Which-key ability to override the command descriptions?

Because of how some packages prefix their command names, eg package-name-command some of the lines in which-key can be quite long.

An example of this is the vulpea-ui-collection-filter commands with the prefix being 21 characters which means the default 27 characters set by which-key-max-description-length is too short after adding the commands and their descriptions.

It could be possible to alias all the vulpea-ui-collection-filtercommands with a shorter prefix like vufc, but that would mean overriding every such command and that could become too many to manage?

May be which-key could simply check the command to be displayed for a prefix, substitute the prefix with a pre-configured shorter prefix, then map it back to the original command when chosen?

What would be the least invasive manner to accomplish this, and even extend it to other packages?

Any ideas?

https://redd.it/1wt8uew
@r_emacs
Reddit From the emacs community on Reddit Explore this post and more from the emacs community
More from @r_emacs
  1. Sep 29, 2026Getting outlook calendars into emacs There were a few recent posts on this and I wanted to…
  2. Sep 29, 2026Does which-key have the option to list long commands completely instead of truncating them…
  3. Sep 29, 2026package-vc vs elapaca or straight. I have been using elpaca for the last year across diffe…
  4. Sep 29, 2026Question for Emacs + Evil Users. I've been using Emacs with vanilla keybindings, and latel…
  5. Sep 29, 2026Background color of active regions in code with AucTeX preview I recently tried the new au…
  6. Sep 28, 2026Which Emacs lisp indentation you guys use? I was using the Emacs Lisp Style Guide indentat…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →