   browserWindow.setPosition(x, y)
   browserWindow.setSize(width, height)
 
+window.restoreDimensions = ->
+  dimensions = atom.getWindowState('dimensions')
+  dimensions = defaultWindowDimensions unless dimensions?.width and dimensions?.height
+  window.setDimensions(dimensions)
+  $(window).on 'unload', -> atom.setWindowState('dimensions', window.getDimensions())
+
 window.closeWithoutConfirm = ->
   ipc.sendChannel 'close-without-confirm'
 


  atom.windowMode = 'editor'
  windowEventHandler = new WindowEventHandler
  config.load()
  keymap.loadBundledKeymaps()
  atom.loadThemes()

    atom.hide()
    unloadConfigWindow()
    false
  remote.getCurrentWindow().show()
  atom.focus()

window.unloadEditorWindow = ->
  return if not project and not rootView
