X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=third-party%2Fcodemirror-3.15%2Fdemo%2Femacs.html;fp=third-party%2Fcodemirror-3.15%2Fdemo%2Femacs.html;h=0a8cfc5d99b2204667202f0f32201043658e7b12;hb=75d3bceb8e1d168e83982f910a916aee3bab7981;hp=0000000000000000000000000000000000000000;hpb=302dd5bda1297ed6579ca26da35ee67f8d35d934;p=unfold.git diff --git a/third-party/codemirror-3.15/demo/emacs.html b/third-party/codemirror-3.15/demo/emacs.html new file mode 100644 index 00000000..0a8cfc5d --- /dev/null +++ b/third-party/codemirror-3.15/demo/emacs.html @@ -0,0 +1,66 @@ + + + + + CodeMirror: Emacs bindings demo + + + + + + + + + + + + + + + +

CodeMirror: Emacs bindings demo

+ +
+ +

The emacs keybindings are enabled by +including keymap/emacs.js and setting +the keyMap option to "emacs". Because +CodeMirror's internal API is quite different from Emacs, they are only +a loose approximation of actual emacs bindings, though.

+ +

Also note that a lot of browsers disallow certain keys from being +captured. For example, Chrome blocks both Ctrl-W and Ctrl-N, with the +result that idiomatic use of Emacs keys will constantly close your tab +or open a new window.

+ + + + +