There is a function org-emphasize
, which wraps selected text in org-emphasis
markers. (Though I personally use a similar function called wrap-region.)
Is there a function org-deemphasize
(or analogously, unwrap-string-at-point
) that will remove org-emphasis
markers before and after point? (Without my having to manually select the exact region?)
It should refer to org-emphasis-alist
For example, my customized org-emphasis alist looks like this:
(("*" bold)
("/" italic)
("_" underline)
("=" org-code verbatim)
("~" flyspell-incorrect)
("+"
(:strike-through t)))
(org-emphasize ? )
does almost what you ask - you'd just need to figure out how to set the region around the currently-emphasized text before you call it. – Tyler May 30 '16 at 19:17