From 5fb7704c0f844191de7c5e4d03b059525348b5f4 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Sat, 13 Apr 2019 19:26:19 -0400 Subject: emacs: move configuration to .emacs.d --- .emacs.d/Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .emacs.d/Makefile (limited to '.emacs.d/Makefile') diff --git a/.emacs.d/Makefile b/.emacs.d/Makefile new file mode 100644 index 0000000..37c1f3f --- /dev/null +++ b/.emacs.d/Makefile @@ -0,0 +1,21 @@ +EMACS ?= emacs +EMACS_ARGUMENTS ?= -Q + +tangle-init: init.el +init.el: init.org + @$(EMACS) $(EMACS_ARGUMENTS) \ + --batch --load org \ + --eval '(org-babel-tangle-file "init.org")' 2>&1 + +build-init: + @$(EMACS) $(EMACS_ARGUMENTS) \ + --batch -l init.el --eval '(a/build-init)' 2>&1 + +ti: tangle-init +bi: build-init + +clean: FORCE + @rm -f init.elc + +.PHONY: clean tangle-init build-init +.FORCE: -- cgit v1.2.3-60-g2f50