emacs-module-rs
emacs-module-rs copied to clipboard
Don't require modules to define an init function that does nothing
Often time, there's no initialization logic needed. Modules should be able to put #![emacs::module] at the root of the crate, instead of this:
// So much boilerplate!
#[emacs::module]
fn init(_: &Env) -> Result<()> {
Ok(())
}
This needs to wait for Rust's issue #54726.