Created
June 26, 2015 16:12
-
-
Save spencermountain/a26a9636f5b2a4c38c60 to your computer and use it in GitHub Desktop.
remove atom contextmenu defaults
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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