Last active
August 29, 2015 14:02
-
-
Save Y4suyuki/7c11739f64742b75d864 to your computer and use it in GitHub Desktop.
emacs key binding for stackedit.io
This file contains hidden or 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
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