Skip to main content
added 270 characters in body
Source Link
phils
  • 55k
  • 3
  • 90
  • 134
  • Use define-prefix-command to define a named prefix
  • Bind C-c x to that prefix command
  • Bind s and r in the prefix command keymap

When you type C-c, which-key will then show you your chosen prefix name instead of just "prefix", which gives you better context for which commands you can expect to be bound underneath it.

Obviously you can type x (with or without doing the above) to see the bindings themselves.

  • Use define-prefix-command to define a named prefix
  • Bind C-c x to that prefix command
  • Bind s and r in the prefix command keymap
  • Use define-prefix-command to define a named prefix
  • Bind C-c x to that prefix command
  • Bind s and r in the prefix command keymap

When you type C-c, which-key will then show you your chosen prefix name instead of just "prefix", which gives you better context for which commands you can expect to be bound underneath it.

Obviously you can type x (with or without doing the above) to see the bindings themselves.

Source Link
phils
  • 55k
  • 3
  • 90
  • 134

  • Use define-prefix-command to define a named prefix
  • Bind C-c x to that prefix command
  • Bind s and r in the prefix command keymap