diff --git a/src/atom/window.coffee b/src/atom/window.coffee index f9200a7e7..ed8af4494 100644 --- a/src/atom/window.coffee +++ b/src/atom/window.coffee @@ -19,6 +19,7 @@ windowAdditions = startup: (url) -> @setUpKeymap() @attachRootView(url) + @loadUserConfig() $(window).on 'close', => @close() $(window).focus() atom.windowOpened this @@ -45,6 +46,13 @@ windowAdditions = @rootView = new RootView {url} $(@rootViewParentSelector).append @rootView + loadUserConfig: (path="~/.atom") -> + absolutePath = fs.absolute(path) + try + require absolutePath if fs.exists(absolutePath) + catch error + console.error "Failed to load `#{absolutePath}`", error + requireStylesheet: (path) -> fullPath = require.resolve(path) content = fs.read(fullPath)