gpt4 book ai didi

org-mode - 为什么 Org-mode 会忽略 :noexport: tags

转载 作者:行者123 更新时间:2023-12-02 01:39:01 26 4
gpt4 key购买 nike

我已经在 org-mode 中设置了我的 Emacs 配置,就像在 this 中一样.

因此标题下标记为:noexport: 的代码不应导出到init.el 文件中。但它的确如此,虽然我有

...
#+OPTIONS: tags:t
#+EXPORT_SELECT_TAGS: export
#+EXPORT_EXCLUDE_TAGS: noexport
#+EXCLUDE_TAGS: noexport
...
#+TAGS: ... noexport(n)

在 header 中,尽管 C-h v org-export-exclude-tags 也显示了正确的值:

org-export-exclude-tags is a variable defined in `ox.el'.
Its value is ("noexport")
...

有没有人知道为什么当我调用 org-babel-load-file 输入 C-c i:noexport: 标签被忽略?

提前致谢

克里斯

最佳答案

EXPORT_EXCLUDE_TAGS 指令在将 org 文件导出为另一种格式时应用。

org-babel-load-file 不使用导出器;它宁愿使用 org-tangle

为了从纠结中排除源代码块,您应该将 :tangle no 添加到您不希望包含在初始化中的实际源代码块。

引用 here .

关于org-mode - 为什么 Org-mode 会忽略 :noexport: tags,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29478501/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com