Fix Emacs

--batch implies -q, so we have to explicitly load init.el
This commit is contained in:
Roey Darwish Dror
2018-06-01 13:24:04 +03:00
parent 935fce2bb2
commit f2c9050d01

View File

@@ -129,6 +129,8 @@ fn run() -> Result<()> {
if home_path(".emacs.d").exists() {
Command::new(&emacs)
.arg("--batch")
.arg("-l")
.arg(home_path(".emacs.d/init.el"))
.arg("--eval")
.arg(EMACS_UPGRADE)
.spawn()?