在组织模式中隐藏标记元素 [英] Hiding markup elements in org-mode

查看:96
本文介绍了在组织模式中隐藏标记元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

组织模式中有很多结构性标记元素,如 * bold * / italic / ,但是它们在组织模式文本中可见,如果该文件旨在用于导出,那么这是很好的进行半WYSIWYG编辑。我想隐藏这些标记符号,所以 * bold * 成为 bold ,就像链接隐藏其方括号一样。

There are plenty structural markup elements in org-mode like *bold* or /italic/, but they are visible in the org-mode text, which is good, if the file is intended for export, and bad, if it is intended for semi-WYSIWYG editing. I want to hide these markup symbols, so the *bold* becomes bold, just like links hide their square brackets.

这是可能在组织模式开箱即用吗?如果没有,那么请建议一个elisp代码,可以解决这个问题。

Is that possible in org-mode out of the box? If not, then please suggest an elisp code, that can solve this problem.

推荐答案

尝试:

(setq org-hide-emphasis-markers t)

或通过自定义设置:

Mx customize-variable RET org-hide -emphasis-markers RET

M-xcustomize-variableRETorg-hide-emphasis-markersRET

这篇关于在组织模式中隐藏标记元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆