Awesome Open Source
Awesome Open Source

Emacs Module in Rust Build Status

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:

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


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

fn say_hello(env: &Env, name: String) -> Result<Value<'_>> {
    env.message(&format!("Hello, {}!", name))
(require 'greeting)
(greeting-say-hello "Emacs")

Example Modules


  • Building:
  • Testing:
  • Continuous testing (requires cargo-watch):
    bin/test watch

On Windows, use PowerShell to run the corresponding .ps1 scripts.

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
rust (4,867
emacs (481
binding (63
ffi (53