Fix Emacs
--batch implies -q, so we have to explicitly load init.el
This commit is contained in:
@@ -129,6 +129,8 @@ fn run() -> Result<()> {
|
|||||||
if home_path(".emacs.d").exists() {
|
if home_path(".emacs.d").exists() {
|
||||||
Command::new(&emacs)
|
Command::new(&emacs)
|
||||||
.arg("--batch")
|
.arg("--batch")
|
||||||
|
.arg("-l")
|
||||||
|
.arg(home_path(".emacs.d/init.el"))
|
||||||
.arg("--eval")
|
.arg("--eval")
|
||||||
.arg(EMACS_UPGRADE)
|
.arg(EMACS_UPGRADE)
|
||||||
.spawn()?
|
.spawn()?
|
||||||
|
|||||||
Reference in New Issue
Block a user