Skip to main content
2 of 2
added 20 characters in body
kjo
  • 3.3k
  • 21
  • 49

How to hide <<target>>s?

I use org-mode mostly (by far) directly within Emacs (as opposed to as a mark-up to be ultimately viewed through, say, a web browser or a PDF viewer). Therefore, I'm interested in ways to "hide"1 as much of the org-mode mark-up as possible.

In particular,

is there a way to hide org-mode target specs, of the form <<target>>?

I'm primarily interested in solutions that can be applied selectively (e.g. only target specs that match a particular regular expression get hidden), but a solution that hides all targets of this form would be OK too.

More generally, I'd be interested in ways to hide arbitrary org-mode mark-up.


1 By "hide" I mean whatever the process is that accounts for the "invisibility" (in an Emacs org-mode buffer) of the leading [[#target][ and trailing ]] (for example) in the hyperlink spec [[#target][here]]. This form of hiding should be contrasted with what happens with the leading stars of a heading when org-hide-leading-stars is non-nil. In the latter case, the stars are still being displayed, albeit in a color that approximates the window's background color. They still take up space on the screen. This is not what I'm referring to by "hiding" in this post.

kjo
  • 3.3k
  • 21
  • 49