https://github.com/replit/codemirror-emacs
Emacs keybindings for CM6
https://github.com/replit/codemirror-emacs
codemirror codemirror-6 editor emacs
Last synced: 4 months ago
JSON representation
Emacs keybindings for CM6
- Host: GitHub
- URL: https://github.com/replit/codemirror-emacs
- Owner: replit
- License: mit
- Created: 2021-12-15T18:36:08.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-07-30T00:00:54.000Z (10 months ago)
- Last Synced: 2024-10-29T14:13:05.149Z (7 months ago)
- Topics: codemirror, codemirror-6, editor, emacs
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/@replit/codemirror-emacs
- Size: 106 KB
- Stars: 21
- Watchers: 38
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Emacs keybindings for CM6
## Installation
`npm i @replit/codemirror-emacs`
## Usage
```js
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'),
})
```