Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Check for Doom-Emacs before init-file
Browse files Browse the repository at this point in the history
  • Loading branch information
Reinaldo Ossuna committed Jul 14, 2022
1 parent 0a3b399 commit c3e76fe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/steps/emacs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,14 @@ impl Emacs {

pub fn upgrade(&self, ctx: &ExecutionContext) -> Result<()> {
let emacs = require("emacs")?;
let init_file = require_option(self.directory.as_ref(), String::from("Emacs directory does not exist"))?
.join("init.el")
.require()?;

if let Some(doom) = &self.doom {
return Emacs::update_doom(doom, ctx);
}

let init_file = require_option(self.directory.as_ref(), String::from("Emacs directory does not exist"))?
.join("init.el")
.require()?;

print_separator("Emacs");

let mut command = ctx.run_type().execute(&emacs);
Expand Down

0 comments on commit c3e76fe

Please sign in to comment.