[英]Can org-mode export all files in a directory?
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? 如果我调整org-mode使用的latex / css样式文件,有没有办法重新导出目录中的所有org文件?
I have previously manually exported all the files. 我以前手动导出了所有文件。
One can start with this version. 可以从这个版本开始。 There are inconveniences: it pollutes kill ring and visits all org 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"))))
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.