@replit/codemirror-emacs
v6.1.0
Published
Emacs keybindings for CodeMirror 6
Downloads
17,566
Readme
Emacs keybindings for CM6
Installation
npm i @replit/codemirror-emacs
Usage
import { basicSetup, EditorView } from 'codemirror';
import { emacs } from "@replit/codemirror-emacs"
new EditorView({
doc: "",
extensions: [
// make sure emacs is included before other keymaps
emacs(),
// include the default keymap and all other keymaps you want to use in insert mode
basicSetup,
],
parent: document.querySelector('#editor'),
})