diff options
author | Tom Willemse | 2014-04-20 16:50:24 +0200 |
---|---|---|
committer | Tom Willemse | 2014-04-20 16:50:24 +0200 |
commit | 329b8457113ad3ff90b5ba944465275aec5f06f2 (patch) | |
tree | 3f7264550b34f25205a9475adcc8eb4f9c84004c | |
parent | a2018e6d804c317e324a5c9d42ec1d44e828b2ff (diff) | |
download | emacs-329b8457113ad3ff90b5ba944465275aec5f06f2.tar.gz emacs-329b8457113ad3ff90b5ba944465275aec5f06f2.zip |
Add export and publish targets
These targets export and publish my Emacs init to my website.
-rw-r--r-- | .emacs.d/Makefile | 12 | ||||
-rw-r--r-- | .emacs.d/init.org | 2 | ||||
-rw-r--r-- | .emacs.d/project.el | 13 |
3 files changed, 26 insertions, 1 deletions
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 "<!DOCTYPE html>" + :html-link-home "https://ryuslash.org"))) |