2012-07-11 24 views
3

如果我調整org-mode使用的latex/css樣式文件,是否有辦法重新導出目錄中的所有組織文件?組織模式可以導出目錄中的所有文件嗎?

我以前手動導出所有文件。

+2

您是使用'org-publish'還是手動導出之前的所有文件? – Juancho 2012-07-11 14:38:24

+0

你的意思是某種批處理? http://orgmode.org/manual/Batch-execution.html – cm2 2012-07-11 15:31:53

回答

1

可以從這個版本開始。有不便之處:它會污染殺戒和訪問所有組織文件。

(defun publish-dir-org() 
    "Publish all org files in a directory" 
    (interactive) 
    (save-excursion 
    (mapc 
    (lambda (file) 
     (with-current-buffer 
     (find-file-noselect file) 
    (org-export-as-html-batch))) 
     (file-expand-wildcards "*.org")))) 
相關問題