   else
     log output
 
-CodeMirror.keyMap.commandLine =
-  Up: "doNothing"
-  Down: "doNothing"
-  PageUp: "doNothing"
-  PageDown: "doNothing"
-  Enter: "doNothing"
-  fallthrough: "default"
-
-CodeMirror.commands.doNothing = (cm) ->
-  true
-
 outputScrollTop = ->
   $("#rightColumn").animate
     scrollTop: 0
   , $("#rightColumn").scrollTop() / 10
-
 
 defaultEditor = ->
   winSize =

  sourceCompiled = false
  sourceChanged = true
  history.add e
  return unless autoCompile
  DELAY = 700
  lastHit = +new Date
  setTimeout ->


sourceArea = ace.edit 'sourceArea'
sourceArea.setTheme "ace/theme/cobalt"
sourceArea.session.setMode "compilers/coffeescript/mode"
sourceArea.session.on 'changeMode', ->
  sourceArea.session.$worker.on 'ok', ({data: {result}}) ->
    saveCurrent()
    compiledJS = result
    hideError "compiler", "runtime"
    sourceCompiled = true
    # $("#repl_permalink").attr "href", "##{sourceFragment}#{encodeURIComponent(source)}"

  sourceArea.session.$worker.on 'error', ({data: {text}}) ->
    showErrorMessage "compiler", "Compiler: #{text}"

sourceArea.setHighlightActiveLine true
sourceArea.session.setTabSize 2
sourceArea.setShowPrintMargin false

sourceArea.session.on 'change', sourceChange

sourceArea.commands.addCommand
  name: 'leave'
