Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
E

emacs-module-rs

> 编程语言
Open source

Rust binding and tools for Emacs's dynamic modules

369 stars0 likes0 views
WebsiteGitHub

About

Rust binding and tools for Emacs's dynamic modules

Emacs Module in Rust

User Guide | Change Log | Examples

This provides a high-level binding to emacs-module, Emacs's support for dynamic modules.

Code for a minimal module looks like this:

rust
use emacs::{defun, Env, Result, Value};

emacs::plugin_is_GPL_compatible!();

#[emacs::module(name = "greeting")]
fn init(_: &Env) -> Result { Ok(()) }

#[defun]
fn say_hello(env: &Env, name: String) -> Result> {
    env.message(&format!("Hello, {}!", name))
}
emacs-lisp
(require 'greeting)
(greeting-say-hello "Emacs")

Example Modules

  • emacs-tree-sitter: Binding for tree-sitter, an incremental parsing tool.
  • pullover: Use Emacs to edit text for other macOS apps.
  • test-module.
  • emacs-rs-examples.
  • magit-libgit2: Experimental attempt to speed up magit using libgit2.

Development

  • Building:
    bash
    cargo xtask build
  • Testing:
    bash
    cargo xtask test
  • Continuous testing (requires cargo-watch):
    bash
    cargo xtask test --watch

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rustbindingemacsemacs-modulesffi

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言