使用emacs org-mode,如何在项目中发布未更改的文件?

an *_*use 11 emacs publish org-mode

我正在运行Emacs 24.3和org-mode 8.25f.当我使用Mx org-publish命令时,org-mode只将新的.org文件转换为.html,并跳过自上次发布操作以来尚未修改的所有其他文件.

但是,通常我在发布设置和一些CSS代码更改中有一些更改.我希望它们对所有文件生效,而不仅仅是最近修改过的文件.

那么,我可以告诉org-mode不要跳过这些未更改的文件吗?

Chr*_*ris 16

这应该工作:

M-: (org-publish "project name" t)
Run Code Online (Sandbox Code Playgroud)

org-publishFORCEset一起运行t.来自文档:

When optional argument FORCE is non-nil, force publishing all
files in PROJECT.  With a non-nil optional argument ASYNC,
publishing will be done asynchronously, in another process.
Run Code Online (Sandbox Code Playgroud)

正如您自己发现的那样,前缀参数也会强制Org发布所有文件:

C-u M-x org-publish
Run Code Online (Sandbox Code Playgroud)