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)))
  • 1
    (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
  • 1
    OP did you ever figure this out? – SFbay007 Nov 7 '17 at 1:30
  • 1
    @SFbay007 Try this. – incandescentman Nov 7 '17 at 5:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.