2

I know mutt allows me to define custom keyboard macros. But is it possible to define custom functions - unbound macros so to speak - that can be executed via mutt's command line. Like so ":custom_command"

Hope someone can help.

80KiloMett
  • 23
  • 3

1 Answers1

1

You can't create custom commands in mutt/neomutt.

But there's a patch for mutt called unbind by David Champion (dgc). I don't remember if it supports unmacro also). Neomutt has native support for unbind and unmacro commands heavily inspired by dgc's patch.

To Change macros and bindins I would create different config files which would be bound to some keys. Let's say F11 and F12. And let them source those config files.

F11 would unbind and unmacro every key F12 has binds and macros bound to. And opposite.

Jakub Jindra
  • 673
  • 5
  • 12