 
   activate: ->
     keymap.add(map) for map in @keymaps
+    applyStylesheet(path, content) for [path, content] in @stylesheets
 
     if @deferActivation
       @subscribeToActivationEvents()

class AtomPackage extends Package
  metadata: null
  keymaps: null
  mainModule: null
  deferActivation: false


        @keymaps.push(CSON.readObject(path))

  loadStylesheets: ->
    @stylesheets = []
    stylesheetDirPath = fs.join(@path, 'stylesheets')
    for stylesheetPath in fs.list(stylesheetDirPath, ['css', 'less']) ? []
      @stylesheets.push([stylesheetPath, loadStylesheet(stylesheetPath)])

  loadGrammars: ->
    grammarsDirPath = fs.join(@path, 'grammars')
