1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
mod config; mod editor; mod spell; mod ui; use crate::config::ConfigExt; use crate::editor::Editor; use std::env; use std::io; fn main() -> io::Result<()> { let _ = Editor::initialize_themes(); let args: Vec<String> = env::args().collect(); let filename = args.get(1).cloned(); let mut editor = Editor::new(filename); editor.run() }