(commandid,
            filemode='kaa.filetype.default.defaultmode.DefaultMode')
return _f
Decorator to register command.

    commandid -- command id
    filemode -- Mode class name to register keybind.
                  (default 'kaa.filetype.default.defaultmode.DefaultMode)

    ex)
        @command(filemode='kaa.filetype.python.pythonmode.PythonMode',
                 commandid='abc.def')
        @norec
        def abc_def(wnd):
            pass
Decorator to register command.
Decorator to register command .
def command(commandid,
            filemode='kaa.filetype.default.defaultmode.DefaultMode'):
    """Decorator to register command.

    commandid -- command id
    filemode -- Mode class name to register keybind.
                  (default 'kaa.filetype.default.defaultmode.DefaultMode)

    ex)
        @command(filemode='kaa.filetype.python.pythonmode.PythonMode',
                 commandid='abc.def')
        @norec
        def abc_def(wnd):
            pass
    """

    def _f(f):
        kaa.command.commandid(commandid)(f)
        add_class_addon(filemode, 'command', f)
        return f
    return _f
def command ( commandid , filemode = 'kaa.filetype.default.defaultmode.DefaultMode' ) : def _f ( f ) : kaa . command . commandid ( commandid ) ( f ) add_class_addon ( filemode , 'command' , f ) return f return _f