Last active
December 11, 2015 04:09
-
-
Save gongo/4543447 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; ~/*.org に対して ORGMODE-Markdown を適用していく | |
(let ((exporter (assoc "Markdown" org-generic-alist)) | |
bufname) | |
(if nil (error "ORGMODE-Markdown is not loaded.") | |
(flet ((read-char-exclusive () (plist-get (cdr exporter) :key-binding))) | |
(dolist (orgfile (directory-files "~" t "\\.org$")) | |
(setq bufname (find-file-noselect orgfile)) | |
(with-current-buffer bufname | |
(org-export-generic nil)) | |
(kill-buffer bufname))))) |
flet + read-char-exclusive で解決した!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
これを ORGMODE-Markdown でもやりたいんだけど、
ORGMODE-Markdown が使ってる org-export-generic って intractive なあれしか想定してないっぽくて、
type 選択の為のキー入力必要が必須っぽくてつらい。見落しであってほしい