summaryrefslogtreecommitdiff
path: root/readme-to-ascii.el
diff options
context:
space:
mode:
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))