Hide leading/trailing emphasis markers in Org mode

Published on Nov 26, 2021, by Junji Zhi

When you edit org files, sometimes you want to emphasize words like code or verbatim.

By default, Doom Emacs shows the leading or trailing marker characters like = or ~. So the org file looks funny.

Naturally, you want to hide the these characters, like an org-link.

This SO answer provides a solution: Toggle on org-hide-emphasis-markers


before tweaking


font screenshot

To further customize each emphasis face, you can tweak the org-emphasis-alist variable and pick or customize each face, like org-verbatim. Here is an example.