2
我想使用在~/.emacs
中定义的elisp defun自动执行两个组织模式文件的html导出。我写了下面的代码:通过elisp自动执行组织模式html导出
(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)
)
但是这不会导出文件;相反,它显示在迷你一个奇怪的输出:
我在做什么错?
谢谢!洞悉为什么'org-export'不起作用? – 2012-07-19 11:51:25
org-export-as-html需要至少一个参数。 '(org-export-as-html org-export-headline-levels)'或'(org-export-as-html 3)''一定是好的。 [git中的代码行](http://orgmode.org/w/?p=org-mode.git;a=blob;f=lisp/org-html.el;h=a2cf2c763edc4d8ac83ad7e84128ec4a67d24b17;hb=HEAD#l1099) – slitvinov 2012-07-19 12:52:12