     #
     # see: https://github.com/ajaxorg/ace/blob/v1.1.4/lib/ace/commands/default_commands.js
 
-    name    : obj.name
+    name    : model.name
     exec    : exec
-    bindKey : toBindKey obj.binding[0] # binds only first shortcut
+    bindKey : toBindKey model.binding[0] # binds only first shortcut
 
 
   constructor: (options, file) ->

      .join '-'


  toCommand = (obj, exec) ->

    # given a keyconfig model json and a callback, converts it to
    # conform to the ace command spec.

              else
                @emit.bind this, 'FindAndReplaceViewRequested', replace

        exec or= @editor.commands.commands[model.name].exec
        @editor.commands.addCommand toCommand(model, exec)


  setEditorListeners: ->
