// init editoreditor = ace.edit(id);// set the themeeditor.setTheme("ace/theme/twilight");// generate the css modecss_mode = require("ace/mode/css").Mode;// set the mode to csseditor.getSession().setMode(new css_mode());
From what I saw, key bindings are defined in keybindings_default folder all in one go.
editor.commands.addCommand({
name: "myCommand",
bindKey: { win: "Ctrl-S", mac: "Command-S" },
exec: function (editor) {
alert("Ctrl-S has been pressed!");
}
});