Set RootView/Editor config defaults from startEditorWindow

This commit is contained in:
Kevin Sawicki 2013-10-14 18:27:45 -07:00
parent 572157124e
commit 4b15b98bdd
2 changed files with 3 additions and 3 deletions

View File

@ -42,9 +42,7 @@ class Config
@packageDirPaths.unshift(path.join(@configDirPath, "dev", "packages"))
@userPackageDirPaths = _.clone(@packageDirPaths)
@defaultSettings =
core: _.clone(require('./root-view').configDefaults)
editor: _.clone(require('./editor').configDefaults)
@defaultSettings = {}
@settings = {}
@configFilePath = fs.resolve(@configDirPath, 'config', ['json', 'cson'])
@configFilePath ?= path.join(@configDirPath, 'config.cson')

View File

@ -49,6 +49,8 @@ window.startEditorWindow = ->
windowEventHandler = new WindowEventHandler
atom.restoreDimensions()
atom.config.load()
atom.config.setDefaults('core', require('./root-view').configDefaults)
atom.config.setDefaults('editor', require('./editor').configDefaults)
atom.keymap.loadBundledKeymaps()
atom.themes.loadBaseStylesheets()
atom.packages.loadPackages()