2014-03-06 48 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

相關問題