Emacs bindings demoEmacs绑定演示文档

The emacs keybindings are enabled by including keymap/emacs.js and setting the keyMap option to "emacs". 通过包含keymap/emacs.js并把keyMap配置项设置为"emacs"来启用emacs键绑定演示文档。Because CodeMirror's internal API is quite different from Emacs, they are only a loose approximation of actual emacs bindings, though.因为CodeMirror的内部API与Emacs相当不同,所以它们只是实际Emacs绑定的松散近似值。

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.例如,Chrome屏蔽了Ctrl+W和Ctrl+N,导致惯用的Emacs键会不断地关闭选项卡或打开一个新窗口。