From 329b8457113ad3ff90b5ba944465275aec5f06f2 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sun, 20 Apr 2014 16:50:24 +0200 Subject: Add export and publish targets These targets export and publish my Emacs init to my website. --- .emacs.d/Makefile | 12 ++++++++++++ .emacs.d/init.org | 2 +- .emacs.d/project.el | 13 +++++++++++++ 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 .emacs.d/project.el (limited to '.emacs.d') diff --git a/.emacs.d/Makefile b/.emacs.d/Makefile index 616136b..c7f593f 100644 --- a/.emacs.d/Makefile +++ b/.emacs.d/Makefile @@ -15,3 +15,15 @@ rudel: git clone git://github.com/scymtym/rudel.git packages/rudel emacs -Q --batch --visit packages/rudel/rudel-compile.el \ --eval "(eval-buffel)" + +clean: + rm -rf _publish/*.* + +export: clean + emacs -L $(CURDIR) -L ~/.emacs.d/vendor-lisp/org/lisp \ + -L ~/.emacs.d/vendor-lisp/org/contrib/lisp -batch -l project.el \ + -f org-publish-all + +publish: export + rsync -avuz --exclude=*~ --delete _publish/ \ + ryuslash.org:public_html/orgweb/dotfiles/emacs diff --git a/.emacs.d/init.org b/.emacs.d/init.org index c639897..6c6e35e 100644 --- a/.emacs.d/init.org +++ b/.emacs.d/init.org @@ -1,4 +1,4 @@ -#+TITLE: +#+TITLE: Emacs init #+PROPERTY: tangle init2.el #+STARTUP: showall #+OPTIONS: author:nil num:nil toc:nil diff --git a/.emacs.d/project.el b/.emacs.d/project.el new file mode 100644 index 0000000..6ddfad1 --- /dev/null +++ b/.emacs.d/project.el @@ -0,0 +1,13 @@ +(require 'ox-publish) + +(setq org-publish-use-timestamps-flag nil + org-html-htmlize-output-type 'css + org-publish-project-alist + '(("org" + :base-directory "./" + :publishing-directory "_publish/" + :recursive nil + :base-extension "org" + :publishing-function org-html-publish-to-html + :html-doctype "" + :html-link-home "https://ryuslash.org"))) -- cgit v1.2.3-54-g00ecf