Org mode 中 org-level 和其它的 face 如 org-link, org-target 怎么共存?

在 Header 中写入的 link 或者 target 长这样, d face 信息: f

我想要的效果如这样: d2
就是保留 org-level 的颜色,高度,加粗等特征,同时加入 org-target/link 的下划线特征。特性优先级无所谓,总归能叠加就好。

请教各位如何实现,:pray:

标记一下,等我找到解决办法再回来。

@yantar92 Might need your help here.

Headline + link face should be compound in the latest org. Targets are using overriding face (see org-set-font-lock-defaults).

It is possible to alter the Org mode fontification settings in org-font-lock-set-keywords-hook. You can directly manipulate org-font-lock-extra-keywords from the hook to adjust anything.


在最新的 Org mode 中,标题和链接的样式应该被合并起来。

使用覆盖样式来标记目标(参见 org-set-font-lock-defaults)。

你可以在 org-font-lock-set-keywords-hook 中修改 Org mode 的颜色设置。你可以直接从这个 hook 中操纵 org-font-lock-extra-keywords 变量来进行任何调整。

1 个赞