Add disableInitialEmptyEditor setting

This commit is contained in:
Jonathan Delgado
2015-08-15 10:21:25 -07:00
parent 927ec7aa31
commit 31634f3f53
2 changed files with 5 additions and 0 deletions

View File

@@ -673,6 +673,7 @@ class Atom extends Model
@windowEventHandler?.unsubscribe()
openInitialEmptyEditorIfNecessary: ->
return if @config.get('core.disableInitialEmptyEditor')
if @getLoadSettings().initialPaths?.length is 0 and @workspace.getPaneItems().length is 0
@workspace.open(null)

View File

@@ -89,6 +89,10 @@ module.exports =
'windows1258',
'windows866'
]
disableInitialEmptyEditor:
description: 'Disable the initial empty editor when atom starts.'
type: 'boolean'
default: false
editor:
type: 'object'