   settings.addEventListener("load", LinkHints.init.bind(LinkHints))
   settings.load()
 
+  # Note. checkIfEnabledForUrl() must come after initializeModes(), here, because checkIfEnabledForUrl() may
+  # install an additional mode (GrabBackFocus).
   initializeModes()
   checkIfEnabledForUrl()
   refreshCompletionKeys()

      do (type) -> installListener window, type, (event) -> handlerStack.bubbleEvent type, event
    installListener document, "DOMActivate", (event) -> handlerStack.bubbleEvent 'DOMActivate', event
    installedListeners = true
    FindModeHistory.init()

#
# Whenever we get the focus:

  new NormalMode
  new PassKeysMode
  new InsertMode permanent: true
  Scroller.init settings

#
