   registerDefaultTargetForKeymaps: ->
     @keymaps.defaultTarget = @views.getView(@workspace)
 
+  observeAutoHideMenuBar: ->
+    @disposables.add @config.onDidChange 'core.autoHideMenuBar', ({newValue}) =>
+      @setAutoHideMenuBar(newValue)
+    @setAutoHideMenuBar(true) if @config.get('core.autoHideMenuBar')
+
   reset: (params) ->
     @deserializers.clear()
     @registerDefaultDeserializers()


    @installUncaughtErrorHandler()
    @installWindowEventHandler()

  setConfigSchema: ->
    @config.setSchema null, {type: 'object', properties: _.clone(require('./config-schema'))}

    @requireUserInitScript() unless @getLoadSettings().safeMode

    @menu.update()

    @openInitialEmptyEditorIfNecessary()

