editor.commands.addCommand({ name: 'saveFile', bindKey: { win: 'Ctrl-S', mac: 'Command-S', sender: 'editor|cli' }, exec: function(env, args, request) { alert("HI!"); } });