Skip to content

Commit 3139e1e

Browse files
committed
Add some control variables of makefile
Well... this should load the ~/.emacs.d/init.el which will slow-down the compile-time but should work to enable htmlize to do syntax highlight on source blocks. The problem, however, seems that the theme is not working. What I get for now is just a weird black/white syntax highlight. There is this message as well on the end of the compilation: Using schema /usr/share/emacs/25.3/etc/schema/xhtml.rnc
1 parent 12444b7 commit 3139e1e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Makefile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
1-
ORG_FILES := $(wildcard *.org)
2-
HTML_FILES := $(patsubst %.org, %.html, $(ORG_FILES))
1+
EMACS_INIT := ~/.emacs.d/init.el
2+
EMACS_LOAD := -l $(EMACS_INIT)
3+
EMACS_FLAGS := --batch --kill $(EMACS_LOAD)
4+
ORG_FILES := $(wildcard *.org)
5+
HTML_FILES := $(patsubst %.org, %.html, $(ORG_FILES))
36

47
.PHONY: clean
58

69
all: $(HTML_FILES)
710

811
%.html: %.org
9-
emacs $< --batch -f org-html-export-to-html --kill
12+
emacs $< $(EMACS_FLAGS) -f org-html-export-to-html
1013

1114
clean:
1215
rm -rf *.html

0 commit comments

Comments
 (0)