   lineNumbers: no
   lineWrapping: yes
   dragDrop: no
+  autofocus: yes
 editor.on 'change', ->
   updateView()
   if initiated

    if e.ctrlKey
      if e.altKey
        hit = switch e.keyCode
          when 26 then model.gotoPresent(); true # ctrl+alt+z
          when 24 then state.mode = 'write'; true # ctrl+alt+x
          when 3 then state.mode = ''; true # ctrl+alt+c
          when 22 then state.mode = 'read'; true # ctrl+alt+v

      read: 'full-view'
      present: 'present'
    }[mode] or ''
    if mode in ['read', 'present']
      editor.setOption 'readOnly', 'nocursor'
      updateView()
    else if mode in ['write', '']
      editor.setOption 'readOnly', no
      editor.focus()
      updateView() if mode is ''
  slide: (nr) -> updateView()
  theme: (v) ->
    model.theme = v
