         { label: 'Bring All to Front', selector: 'arrangeInFront:' }
       ]
 
-    @menu = Menu.buildFromTemplate [atomMenu, viewMenu, editMenu, windowMenu]
+    @menu = Menu.buildFromTemplate [atomMenu, fileMenu, editMenu, viewMenu, windowMenu]
     Menu.setApplicationMenu @menu
 
   handleEvents: ->
-    # Quit when all windows are closed.
-    app.on 'window-all-closed', ->
-      app.quit()
-
     # Clean the socket file when quit normally.
     app.on 'will-quit', =>
       fs.unlinkSync socketPath if fs.existsSync(socketPath)

      if pathsToOpen?.length > 0
        @openPaths(pathsToOpen)
      else
        pathsToOpen = dialog.showOpenDialog title: 'Open', properties: ['openFile', 'openDirectory', 'multiSelections', 'createDirectory']
        @openPaths(pathsToOpen)

    ipc.on 'new-window', =>
      @open()

      isSpec: true

    specWindow.show()

  promptForPath: ->
    pathsToOpen = dialog.showOpenDialog title: 'Open', properties: ['openFile', 'openDirectory', 'multiSelections', 'createDirectory']
    @openPaths(pathsToOpen)
