+EventEmitter = require './event-emitter'
 fsUtils = require './fs-utils'
 _ = require './underscore-extensions'
 Package = require './package'

      return pack if pack = @getLoadedPackage(name)
      pack = Package.load(packagePath, options)
      if pack.metadata.theme
        @themes.register(pack)
      else
        @loadedPackages[pack.name] = pack
      pack

    require '../exports/atom'

    @loadPackage(name) for name in @getAvailablePackageNames() when not @isPackageDisabled(name)
    @trigger 'loaded'

  loadPackage: (name, options) ->
    if @isPackageDisabled(name)
