emacs-module-rs icon indicating copy to clipboard operation
emacs-module-rs copied to clipboard

Don't require modules to define an init function that does nothing

Open ubolonton opened this issue 6 years ago • 0 comments

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.

ubolonton avatar Apr 22 '19 12:04 ubolonton