   deactivate: ->
     @subscriptions.dispose()
     @subscriptions = null
-    @editorSubscriptions.dispose()
-    @editorSubscriptions = null
     settings.dispose()
     @history?.destroy()
     @history = null

  config: settings.config
  history: null
  subscriptions: null
  editorSubscriptions: null

  activate: ->
    @subscriptions = new CompositeDisposable
    @editorSubscriptions = new CompositeDisposable
    @history = new History(settings.get('max'))
    @emitter = new Emitter



      disposable = editor.onDidDestroy =>
        disposable.dispose()
        @subscriptions.remove(disposable)
      @subscriptions.add(disposable)

  jump: (direction, withinEditor=false) ->
    return unless editor = atom.workspace.getActiveTextEditor()
