extern crate libc; extern crate emacs_module_bindings as emacs; use emacs::emacs_module::{EmacsEnv, EmacsRT, EmacsVal}; /// This states that the module is GPL-compliant. /// Emacs won't load the module if this symbol is undefined. #[no_mangle] #[allow(non_upper_case_globals)] pub static plugin_is_GPL_compatible: libc::c_int = 0; #[no_mangle] pub extern "C" fn emacs_module_init(ert: *mut EmacsRT) -> libc::c_int { let env = emacs::get_environment(ert); // Add any other things you need the module to do here emacs::provide(env, "my-fancy-module"); 0 }
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4