summaryrefslogtreecommitdiff
path: root/readme-to-ascii.el
blob: 5d28a344d8d3250b2135c717bf411e072498bdd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
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))