Refactor noninteractive init; set doom-emacs-dir internally

This commit is contained in:
Henrik Lissner 2018-04-03 19:46:22 -04:00
parent c24c868945
commit d85a2a6af0
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 16 additions and 27 deletions

View file

@ -1,5 +1,5 @@
# Ensure emacs always runs from this makefile's PWD
EMACS = emacs -q --eval "(setq user-emacs-directory default-directory load-prefer-newer t)"
EMACS = emacs -q --eval "(setq noninteractive 'doom)"
DOOM = $(EMACS) --batch -l init.el
DOOMI = $(subst --batch,,$(DOOM))