Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

kill buffers after exporting them

export buffers after the first are opened read-only otherwise
  • Loading branch information...
commit 137b054c7f747c689c12dc7c2fe570c78eb6698b 1 parent 6f22440
@beerriot beerriot authored
Showing with 6 additions and 3 deletions.
  1. +6 −3 orgbatch.el
9 orgbatch.el
@@ -22,9 +22,12 @@
;; command-line --eval functions
(defun riak-export-doc-file (filename format)
(find-file filename)
- (cond ((eq format 'ascii) (org-export-as-ascii 3))
- ((eq format 'html) (org-export-as-html 3))
- (message "Unknown export format")))
+ (cond ((eq format 'ascii) (org-export-as-ascii 3)
+ (kill-this-buffer))
+ ((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)
Please sign in to comment.
Something went wrong with that request. Please try again.