Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
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.
可以从这个版本开始。有不便之处:它会污染杀死环并访问所有组织文件。
(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"))))