Projects
View on GitHub
ubolonton/emacs-module-rs
About
Rust binding and tools for Emacs's dynamic modules
Developer ToolsMeasured star growth
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- 0
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalEmacs 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:
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<Value<'_>> {
env.message(&format!("Hello, {}!", name))
}
(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:
cargo xtask build - Testing:
cargo xtask test - Continuous testing (requires
cargo-watch):cargo xtask test --watch
Explore related projects
Loading…