Look for ~/.config/emacs directory in Windows (fix #766)
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user