Skip to content

Instantly share code, notes, and snippets.

@spencermountain
Created June 26, 2015 16:12
Show Gist options
  • Save spencermountain/a26a9636f5b2a4c38c60 to your computer and use it in GitHub Desktop.
Save spencermountain/a26a9636f5b2a4c38c60 to your computer and use it in GitHub Desktop.
remove atom contextmenu defaults
#remove things from contextmenu
ban_menus= {
"Undo":true
"Split Up":true
"Correct Spelling":true
}
atom.contextMenu.itemSets.forEach (o)->
if o.selector.match(/(atom-text-editor|atom-pane)/)
if ban_menus[o.items[0].label] || ban_menus[(o.items[1]||{}).label]
o.items=[];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment