Endless Parentheses

Concise ramblings on Emacs productivity.

profile for Malabarba on Stack Exchange

Applying Markup to Strings in org-mode

Normally, org-mode ignores your attempts to markup text that starts with " or '. That’s probably a safe measure because "~/" is a very common string to write but ~ is one of Org’s markup elements.

Fixing that is a simple matter, but it takes a bit of digging around. We just need to remove those two characters from the 3rd element of org-emphasis-regexp-components.

;; This HAS to come before (require 'org)
(setq org-emphasis-regexp-components
      '("     ('\"{“”"
        "-   .,!?;''“”\")}/\\“”"
        "    \r\n,"

Tags: org-mode, init.el, emacs

comments powered by Disqus