all repos — archive/dotfiles @ efa975ed49a33accf3d8c0d674320f26c9ec1cca

Superseded by nixfiles

Emacs: Fix building emacs config files on macOS

Alan Pearce
commit

efa975ed49a33accf3d8c0d674320f26c9ec1cca

parent

91ddb83cbe0dfe03e9d2d3ea3984fc824407e5f9

1 file changed, 5 insertions(+), 2 deletions(-)

changed files
M emacs/.emacs.d/Makefileemacs/.emacs.d/Makefile
@@ -1,5 +1,6 @@
define EMACS_TANGLE (progn\ + (require 'package)\ (package-refresh-contents nil)\ (setq vc-follow-symlinks nil)\ (find-file \"init.org\")\
@@ -7,6 +8,8 @@ (require 'ob-tangle)\
(org-babel-tangle nil \"init.el\")) endef +EMACS := ${NIX_LINK}/bin/emacs + # The first target is the default. `all` is typically defined here. all: init.elc
@@ -14,10 +17,10 @@ # These targets don't pertain to files
.PHONY: all clean init.el: - @emacs --batch --no-init-file --eval "$(EMACS_TANGLE)" --kill + $(EMACS) --batch --no-init-file --eval "$(EMACS_TANGLE)" --kill init.elc: init.el - @emacs --batch --no-init-file --funcall batch-byte-compile init.el + $(EMACS) --batch --no-init-file --funcall batch-byte-compile init.el clean: rm init.el init.elc