Skip to content

Instantly share code, notes, and snippets.

@gongo
Last active December 11, 2015 04:09
Show Gist options
  • Save gongo/4543447 to your computer and use it in GitHub Desktop.
Save gongo/4543447 to your computer and use it in GitHub Desktop.
;; ~/*.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)))))
@gongo
Copy link
Author

gongo commented Jan 16, 2013

これを ORGMODE-Markdown でもやりたいんだけど、
ORGMODE-Markdown が使ってる org-export-generic って intractive なあれしか想定してないっぽくて、
type 選択の為のキー入力必要が必須っぽくてつらい。見落しであってほしい

@gongo
Copy link
Author

gongo commented Jan 16, 2013

flet + read-char-exclusive で解決した!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment