2

我想使用定义在~/.emacs. 我写了以下代码:

(defun publish-custom-orgs ()
  "publish certain org files as html files"
  (interactive)
  (find-file "~/org/a.org")
  (org-export-as-html)
  (find-file "~/org/b.org")
  (org-export-as-html)
)

但这不会导出文件;相反,它在 minibuffer 中显示了一个奇怪的输出:

在此处输入图像描述

我究竟做错了什么?

4

1 回答 1

2

您可以尝试 org-export-as-html-batch

(defun publish-custom-orgs ()
  "publish certain org files as html files"
  (interactive)
  (find-file "~/org/a.org")
  (org-export-as-html-batch)
  (find-file "~/org/b.org")
  (org-export-as-html-batch)
)
于 2012-07-19T11:30:58.153 回答