Skip to content

Commit

Permalink
kill buffers after exporting them
Browse files Browse the repository at this point in the history
export buffers after the first are opened read-only otherwise
  • Loading branch information
beerriot committed Feb 1, 2010
1 parent 6f22440 commit 137b054
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions orgbatch.el
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -22,9 +22,12 @@
;; command-line --eval functions ;; command-line --eval functions
(defun riak-export-doc-file (filename format) (defun riak-export-doc-file (filename format)
(find-file filename) (find-file filename)
(cond ((eq format 'ascii) (org-export-as-ascii 3)) (cond ((eq format 'ascii) (org-export-as-ascii 3)
((eq format 'html) (org-export-as-html 3)) (kill-this-buffer))
(message "Unknown export format"))) ((eq format 'html) (org-export-as-html 3)
(kill-this-buffer))
(message "Unknown export format"))
(kill-this-buffer))


(defun riak-export-doc-dir (directory format) (defun riak-export-doc-dir (directory format)
(mapcar (mapcar
Expand Down

0 comments on commit 137b054

Please sign in to comment.