Socket
Socket
Sign inDemoInstall

@replit/codemirror-emacs

Package Overview
Dependencies
12
Maintainers
23
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @replit/codemirror-emacs

Emacs keybindings for CodeMirror 6


Version published
Weekly downloads
35K
increased by34.19%
Maintainers
23
Install size
101 kB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 14 Mar 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc