Skip to content

Instantly share code, notes, and snippets.

@Y4suyuki
Last active August 29, 2015 14:02
Show Gist options
  • Save Y4suyuki/7c11739f64742b75d864 to your computer and use it in GitHub Desktop.
Save Y4suyuki/7c11739f64742b75d864 to your computer and use it in GitHub Desktop.
emacs key binding for stackedit.io
var ace = {};
ace.require = require;
ace.define = define;
ace.require(["ace/lib/net"], function(acenet){
acenet.loadScript("https://rawgithub.com/ajaxorg/ace-builds/master/src-min-noconflict/keybinding-emacs.js", function() {
e = document.querySelector(".ace_editor").env.editor
ace.require(["ace/keyboard/emacs"], function(aceemacs) {
e.setKeyboardHandler(aceemacs.handler);
})
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment