Rust 绑定和 Emacs 动态模块的工具
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::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))
}(require 'greeting)
(greeting-say-hello "Emacs")cargo xtask buildcargo xtask testcargo-watch):cargo xtask test --watch暂无开放 Issues,或尚未同步最近议题。