mirror of
https://github.com/atom/atom.git
synced 2026-02-08 13:45:09 -05:00
20 lines
516 B
CoffeeScript
20 lines
516 B
CoffeeScript
{Chrome, Dir, File} = require 'osx'
|
|
|
|
_.map Dir.list(Chrome.appRoot() + "/plugins"), (plugin) ->
|
|
try
|
|
require plugin
|
|
catch e
|
|
name = _.last plugin.split '/'
|
|
console.error "Problem loading plugin #{name}: #{e.message}"
|
|
|
|
if css = File.read "~/.atomicity/twilight.css"
|
|
head = $('head')[0]
|
|
style = document.createElement 'style'
|
|
rules = document.createTextNode css
|
|
style.type = 'text/css'
|
|
style.appendChild rules
|
|
head.appendChild style
|
|
|
|
_.map Dir.list("~/.atomicity/"), (path) ->
|
|
require path
|