X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=to-be-integrated%2Fthird-party%2Fcodemirror-3.15%2Fdemo%2Femacs.html;fp=to-be-integrated%2Fthird-party%2Fcodemirror-3.15%2Fdemo%2Femacs.html;h=0a8cfc5d99b2204667202f0f32201043658e7b12;hb=31540dd504798e0aca69e10d8144fbedc5b16af8;hp=0000000000000000000000000000000000000000;hpb=937653fd70bbf7d95bcf870e7f2b46b4a8fec486;p=myslice.git diff --git a/to-be-integrated/third-party/codemirror-3.15/demo/emacs.html b/to-be-integrated/third-party/codemirror-3.15/demo/emacs.html new file mode 100644 index 00000000..0a8cfc5d --- /dev/null +++ b/to-be-integrated/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.

+ + + + +