     atom.commands.add 'atom-workspace', 'settings-view:open', =>
       @updateSettings(true)
 
-  updateMenu: (menuList) ->
-    return if not _defM.Menu
+  updateMenu: (menuList, def) ->
+    return if not def
     for menu in menuList
       continue if not menu.label
       key = menu.label
-      set = _defM.Menu[key]
+      set = def[key]
       continue if not set
       menu.label = set.value if set?
       if menu.submenu?

      setTimeout(@delaySettings, 0)
    else

  delaySettings: () ->
    try
      panel = document.querySelector('.settings-view .panels-menu')
      for d in _defS.Settings.menu
        el = panel.querySelector("[name='#{d.label}']>a")
        applyTextWithOrg el, d.value



  updateContextMenu: () ->
    for itemSet in atom.contextMenu.itemSets
      set = @defC.Context[itemSet.selector]
      continue if not set
      for item in itemSet.items
        continue if item.type is "separator"
