summaryrefslogtreecommitdiff
path: root/readme-to-ascii.el
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2014-02-08 00:20:57 -0500
committerKyle Meyer <kyle@kyleam.com>2014-02-08 00:22:23 -0500
commit5cbdbb0fc25ce28520d3fb6355775f0e851a2acc (patch)
treee28062896191f807522fefe3f67d077c8e6ec9d9 /readme-to-ascii.el
parentff679136b8e2273a79dc6ce68785b6fbbd898de7 (diff)
downloadbog-5cbdbb0fc25ce28520d3fb6355775f0e851a2acc.tar.gz
DOC: Export README text file for GitHub
Diffstat (limited to 'readme-to-ascii.el')
-rw-r--r--readme-to-ascii.el12
1 files changed, 12 insertions, 0 deletions
diff --git a/readme-to-ascii.el b/readme-to-ascii.el
new file mode 100644
index 0000000..5d28a34
--- /dev/null
+++ b/readme-to-ascii.el
@@ -0,0 +1,12 @@
+(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))
+
+(let ((readme-file "README.org")
+ exported-file
+ (final-file "README"))
+ (with-current-buffer (find-file-noselect readme-file)
+ (setq exported-file (org-ascii-export-to-ascii)))
+ (rename-file exported-file final-file t))