@cmd('<STR_LIT>', options='<STR_LIT>')<EOL>def bind_key(pymux, variables):
key = variables['<STR_LIT>']<EOL>command = variables['<STR_LIT>']<EOL>arguments = variables['<STR_LIT>']<EOL>needs_prefix = not variables['<STR_LIT>']<EOL>try:<EOL><INDENT>pymux.key_bindings_manager.add_custom_binding(<EOL>key, command, arguments, needs_prefix=needs_prefix)<EOL><DEDENT>except ValueError:<EOL><INDENT>raise CommandException('<STR_LIT>' % (key, ))<EOL><DEDENT>
Bind a key sequence.
-n: Not necessary to use the prefix.