From f2c9050d0116b9ebcfad6dbc338cec631a1ac301 Mon Sep 17 00:00:00 2001 From: Roey Darwish Dror Date: Fri, 1 Jun 2018 13:24:04 +0300 Subject: [PATCH] Fix Emacs --batch implies -q, so we have to explicitly load init.el --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.rs b/src/main.rs index 6bcfde7c..8d85a879 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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()?