2014-03-06 49 views
3

我试图找到从导出树中排除多个文件的方式。例如,在以下示例org-publish-project-alist中,我排除了level-0.org,因此它不会在/foo/bar/pub中创建,也不会在站点地图中创建。排除组织模式导出功能中的多个文件

("somewebproject" 
    :base-directory "/foo/bar/src" 
    :base-extension "org" 
    :publishing-directory "/foo/bar/pub" 
    :recursive t 
    :exclude "level-0.org" 
    :publishing-function org-html-publish-to-html 
    :headline-levels 4 ; Just the default for this project. 
    :auto-preamble t 
    :auto-sitemap t 
    :html-link-up "sitemap.html" 
    :html-link-home "index.html" 
    :sitemap-title "My Sitemap" 
) 

不过,我有一个叫另一个文件,例如level-1.org,我也想排除,使文件到列表中,例如'("level-0.org" "level-1.org")似乎并没有帮助它的。

关于使其在此片段中工作的任何提示,或者如果有更好的方法来做到这一点,将不胜感激!

回答

3

在阅读实际的组织模式源代码后,我找到了一个解决方案。所以我在这里回答我自己的问题。

总之,看起来像:exclude接受正则表达式,所以我可以做level-0.org\\|level-1.org或在这种情况下level-..org

+0

耶!这是我缺乏,在管道之前的双反斜杠。谢谢! – prof

相关问题