 
   onWillDeactivateMode: (fn) ->
     @emitter.on 'will-deactivate-mode', fn
+
+  onDidActivateMode: (fn) ->
+    @emitter.on 'did-activate-mode', fn
 
   # activate: Public
   #  Use this method to change mode, DONT use other direct method.

    {@editor, @editorElement} = @vimState
    @emitter = new Emitter

  eachSelection: (fn) ->
    eachSelection(@editor, fn)



    # Now update mode variables and update CSS selectors.
    [@mode, @submode] = [mode, submode]
    @emitter.emit 'did-activate-mode', {@mode, @submode}

  # Normal
  # -------------------------
