Skip to content

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 45.5%
  • HTML 35.3%
  • JavaScript 19.0%
  • Nix 0.2%