📄 Create Emacs installer for editor config
This commit is contained in:
parent
d02bd55424
commit
c4883370b2
1 changed files with 30 additions and 0 deletions
30
src/editor_configs/install_emacs_config.rs
Normal file
30
src/editor_configs/install_emacs_config.rs
Normal file
|
@ -0,0 +1,30 @@
|
|||
use crate::execute_command;
|
||||
|
||||
pub fn doomemacs() {
|
||||
execute_command("sudo", vec!["pacman", "-S", "emacs", "git", "--noconfirm"]);
|
||||
execute_command(
|
||||
"git",
|
||||
vec![
|
||||
"clone",
|
||||
"--depth",
|
||||
"1",
|
||||
"https://github.com/doomemacs/doomemacs",
|
||||
"~/.config/emacs",
|
||||
],
|
||||
);
|
||||
println!("dont forgot to add ~/.config/emacs/bin to your path.");
|
||||
println!("after adding to path, re run your terminal and type doom install.");
|
||||
}
|
||||
|
||||
pub fn spacemacs() {
|
||||
execute_command("sudo", vec!["pacman", "-S", "emacs", "git", "--noconfirm"]);
|
||||
execute_command(
|
||||
"git",
|
||||
vec![
|
||||
"clone",
|
||||
"https://github.com/syl20bnr/spacemacs",
|
||||
"~/.emacs.d",
|
||||
],
|
||||
);
|
||||
println!("now you can now open emacs for changes to take effect.");
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue