     @getDOMNode().addEventListener 'focus', @onFocus
     @refs.scrollView.getDOMNode().addEventListener 'overflowchanged', @onOverflowChanged
 
-  listenForCustomEvents: ->
-    {editor, mini} = @props
-
-    @addCustomEventListeners
+  listenForCommands: ->
+    {parentView, editor, mini} = @props
+
+    @addCommandListeners
       'core:move-left': => editor.moveCursorLeft()
       'core:move-right': => editor.moveCursorRight()
       'core:select-left': => editor.selectLeft()

      'editor:lower-case': => editor.lowerCase()

    unless mini
      @addCustomEventListeners
        'core:move-up': => editor.moveCursorUp()
        'core:move-down': => editor.moveCursorDown()
        'core:move-to-top': => editor.moveCursorToTop()

        # 'core:page-up': => @pageUp()
        # 'editor:scroll-to-cursor': => @scrollToCursorPosition()

  addCommandListeners: (listenersByCommandName) ->
    {parentView} = @props

    for command, listener of listenersByCommandName
      parentView.command command, listener

  observeConfig: ->
    @subscribe atom.config.observe 'editor.fontFamily', @setFontFamily
    @subscribe atom.config.observe 'editor.fontSize', @setFontSize
