summaryrefslogtreecommitdiff
path: root/readme-to-md.el
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2014-03-16 01:29:27 -0400
committerKyle Meyer <kyle@kyleam.com>2014-03-16 02:41:59 -0400
commit697d335ec491ec48e3cec0d59d15e839b0f22dec (patch)
treec68ed591357e028fc612ebfc03a4f17423c40922 /readme-to-md.el
parent606f7b501a60afe2f6c135acb0ce9974eb9b991c (diff)
downloadbog-697d335ec491ec48e3cec0d59d15e839b0f22dec.tar.gz
DOC: Switch bog-readme.org export to markdown
Diffstat (limited to 'readme-to-md.el')
-rw-r--r--readme-to-md.el13
1 files changed, 13 insertions, 0 deletions
diff --git a/readme-to-md.el b/readme-to-md.el
new file mode 100644
index 0000000..3303029
--- /dev/null
+++ b/readme-to-md.el
@@ -0,0 +1,13 @@
+(defvar org-location "~/src/emacs/org-mode/lisp")
+
+(when (and org-location (file-exists-p org-location))
+ (add-to-list 'load-path org-location)
+ (require 'org))
+(require 'ox-md)
+
+(let ((readme-file "bog-readme.org")
+ exported-file
+ (final-file "README.md"))
+ (with-current-buffer (find-file-noselect readme-file)
+ (setq exported-file (org-md-export-to-markdown)))
+ (rename-file exported-file final-file t))