@replit/codemirror-emacs
TypeScript icon, indicating that this package has built-in type declarations

6.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @replit/codemirror-emacs

Weekly Downloads

38,265

Version

6.0.1

License

MIT

Unpacked Size

103 kB

Total Files

19

Last publish

Collaborators

  • mikewesthad
  • motzyball
  • juan.replit
  • ahulbert-replit
  • james-addison-replit
  • replitdstewart
  • ryanweingast
  • harryatreplit
  • theflowingsky
  • jonesit-replit
  • szymon_k
  • cdmistman
  • jackyzha0
  • jamesaustinreplit
  • lopezhoracio
  • bradymaddenreplit
  • ryantm
  • alexisreplit
  • ink404
  • brianpool
  • tobyho
  • brenoafb
  • masad-frost
  • lincolnreplit
  • stkenned
  • replitmatt
  • cbrewster
  • ltazmin_replit
  • moudy
  • schestakov
  • lhchavez
  • slmjkdbtl
  • lunaroyster