         @emit 'FileContentRestored'  unless @isCurrentContentChanged()
 
       @editor.gotoLine 0
-
-      @editor.commands.removeCommands [
-        'sortlines' # XXX
-        'showSettingsMenu'
-        'findprevious'
-        'findnext'
-        'findAll'
-        'toggleFoldWidget'
-        'toggleParentFoldWidget'
-        'passKeysToBrowser'
-        'jumptomatching'
-        'selecttomatching'
-        'expandToMatching'
-        'iSearch'
-        'iSearchAndGo'
-        'iSearchBackwardsAndGo'
-        'recenterTopBottom'
-        'selectAllMatches'
-        'searchAsRegExp'
-        'yankNextChar'
-        'yankNextWord'
-        'occurisearch'
-        'cancelSearch'
-        'confirmSearch'
-        'restartSearch'
-        'searchBackward'
-        'searchForward'
-        'shrinkSearchTerm'
-        'extendSearchTermSpace'
-      ]
 
       @prepareEditor()
 

      .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: ->
