3

If I tweak the latex/css style file used by org-mode, is there a way to re-export all the org files in a directory?

I have previously manually exported all the files.

4

1 回答 1

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"))))
于 2012-07-20T21:36:30.453 回答