Skip to content

Commit

Permalink
fix(elisp): purely local cask
Browse files Browse the repository at this point in the history
  • Loading branch information
Kha authored and soonhokong committed May 20, 2016
1 parent 3af7a44 commit 48cb5db
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,21 @@ tutorial.org: $(ORGS)
cat header/html.org $< > $(TMPDIR)/$<.temp.org
(grep "\\\\cite{" $< && cat footer/bib.html.org >> $(TMPDIR)/$<.temp.org) || true
cp *.bib $(TMPDIR)
$(EMACS_BIN) --no-site-file --no-site-lisp -q --batch -l elisp/org-html-export.el --visit $(TMPDIR)/$<.temp.org -f org-html-export-to-html
$(CASK_BIN) exec $(EMACS_BIN) --no-site-file --no-site-lisp -q --batch -l elisp/org-html-export.el --visit $(TMPDIR)/$<.temp.org -f org-html-export-to-html
mv $(TMPDIR)/$<.temp.html $@
rm $(TMPDIR)/$<.temp.org

quickref.tex: A1_Quick_Reference.org .cask elisp/org-pdf-export.el header/latex_quickref.org header/latex_quickref.tex
make gitinfo
cat header/latex_quickref.org $< > $(TMPDIR)/$<.temp.org
$(EMACS_BIN) --no-site-file --no-site-lisp -q --batch -l elisp/org-pdf-export.el --visit $(TMPDIR)/$<.temp.org -f org-latex-export-to-latex
$(CASK_BIN) exec $(EMACS_BIN) --no-site-file --no-site-lisp -q --batch -l elisp/org-pdf-export.el --visit $(TMPDIR)/$<.temp.org -f org-latex-export-to-latex
mv $(TMPDIR)/$<.temp.tex $@
rm $(TMPDIR)/$<.temp.org

tutorial.tex: tutorial.org .cask elisp/org-pdf-export.el header/latex.org header/latex.tex footer/latex.org lean.bib
make gitinfo
cat header/latex.org $< footer/latex.org > $(TMPDIR)/$<.temp.org
$(EMACS_BIN) --no-site-file --no-site-lisp -q --batch -l elisp/org-pdf-export.el --visit $(TMPDIR)/$<.temp.org -f org-latex-export-to-latex
$(CASK_BIN) exec $(EMACS_BIN) --no-site-file --no-site-lisp -q --batch -l elisp/org-pdf-export.el --visit $(TMPDIR)/$<.temp.org -f org-latex-export-to-latex
mv $(TMPDIR)/$<.temp.tex $@
rm $(TMPDIR)/$<.temp.org

Expand Down
5 changes: 1 addition & 4 deletions elisp/org-html-export.el
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
;; emacs org-mode batch configuration
(require 'cask "~/.cask/cask.el")
(cask-initialize "./")
(require 'f)
(setq working-dir (f-dirname (f-this-file)))
(add-to-list 'load-path working-dir)
(setq make-backup-files nil)

;;; ORG mode
(require 's)
(require 'f)
(require 'org)
(require 'ox-bibtex)
(require 'dash)
Expand Down
4 changes: 1 addition & 3 deletions elisp/org-pdf-export.el
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
(require 'cask "~/.cask/cask.el")
(cask-initialize "./")
(require 'f)
(setq working-dir (f-dirname (f-this-file)))
(add-to-list 'load-path working-dir)
(setq make-backup-files nil)
(add-to-list 'load-path (f-join working-dir "elisp"))
(require 'org)
(require 'ox)
(require 'lean-export-util)
Expand Down

0 comments on commit 48cb5db

Please sign in to comment.