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))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
flet + read-char-exclusive で解決した!