Skip to content

aeaton-overleaf/codemirror-emacs

 
 

Repository files navigation

Emacs keybindings for CM6

Run on Replit badge NPM version badge

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'),
})

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 91.4%
  • HTML 5.0%
  • JavaScript 3.1%
  • Nix 0.5%