diff --git a/src/steps/emacs.rs b/src/steps/emacs.rs index 9e941c9e..1c34d45f 100644 --- a/src/steps/emacs.rs +++ b/src/steps/emacs.rs @@ -37,7 +37,12 @@ impl Emacs { #[cfg(windows)] return env::var("HOME") .ok() - .and_then(|home| PathBuf::from(home).join(".emacs.d").if_exists()) + .and_then(|home| { + PathBuf::from(&home) + .join(".emacs.d") + .if_exists() + .or_else(|| PathBuf::from(&home).join(".config\\emacs").if_exists()) + }) .or_else(|| base_dirs.data_dir().join(".emacs.d").if_exists()); }