Linux Mint 20
Emacs 27.2
ido-mode
When I press M-x
then show (ido-mode) the list of functions.
Nice. But sometime it is not enough. I need to know what is keybinding for this functions. Is it possible to show keybining when press M-x
?
The amx package will provide this:
Showing keyboard shortcuts for commands
When completing command names, Amx shows the keyboard shortcut for all commands currently bound to a key, so you can find out when there's an easier way to run the command you're looking for.
Ie, M-x find-file
may appear similar to this, depending on themes and other packages:
You can use C-h f
to get all the help about any function, including what keys it is bound to.
helm
does this, but helm is a really big package with lots of features beyond ido.*Completions*
. Vanilla Emacs doesn't do that, as far as I know. But as @db48x's answer says, you can always stop and useC-h f
to find out what a command is bound to.ivy/counsel/swiper
does this too.M-x
in Emacs 28 does this by default too.suggest-key-bindings
.