[英]Using emacs org-mode, how to publish the unchanged files in a project?
我正在运行 Emacs 24.3 和组织模式 8.25f。 当我使用M-x org-publish命令时,org-mode 仅将 new.org 文件转换为 .html 并跳过自上次发布操作以来未修改的所有其他文件。
但是,通常我会在发布设置和一些 CSS 代码更改中进行一些更改。 我希望它们对所有文件生效,而不仅仅是最近修改的文件。
那么,我可以告诉 org-mode 不要跳过这些未更改的文件吗?
这应该工作:
M-: (org-publish "project name" t)
这将运行org-publish
, FORCE
设置为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.
正如您自己发现的那样 , 前缀参数也会强制Org发布所有文件 :
C-u M-x org-publish
您可以在 Org 模式下使用Cc Ce
调用的导出调度器,在Cf
下提供了相关的“强制发布”选项。 因此,要强制发布当前文件,请键入Cc Ce Cf P f
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.