diff options
author | Kyle Meyer <kyle@kyleam.com> | 2014-02-08 00:20:57 -0500 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2014-02-08 00:22:23 -0500 |
commit | 5cbdbb0fc25ce28520d3fb6355775f0e851a2acc (patch) | |
tree | e28062896191f807522fefe3f67d077c8e6ec9d9 /readme-to-ascii.el | |
parent | ff679136b8e2273a79dc6ce68785b6fbbd898de7 (diff) | |
download | bog-5cbdbb0fc25ce28520d3fb6355775f0e851a2acc.tar.gz |
DOC: Export README text file for GitHub
Diffstat (limited to 'readme-to-ascii.el')
-rw-r--r-- | readme-to-ascii.el | 12 |
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)) |