From: Don Armstrong Date: Thu, 6 Nov 2014 22:54:40 +0000 (-0800) Subject: allow zero-width spaces to separate bold characters X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=71ec3f77372787cb7bb02edb375fbb7a90f4d76b;p=lib.git allow zero-width spaces to separate bold characters --- diff --git a/emacs_el/configuration/org-mode-configuration.el b/emacs_el/configuration/org-mode-configuration.el index bb3ff9c..e4232a2 100644 --- a/emacs_el/configuration/org-mode-configuration.el +++ b/emacs_el/configuration/org-mode-configuration.el @@ -934,3 +934,8 @@ A prefix arg forces clock in of the default task." (org-with-point-at clock-in-to-task (org-clock-in nil)))) + +; allow for zero-width-space to be a break in regexp too +(setcar org-emphasis-regexp-components "​ [:space:] \t('\"{") +(setcar (nthcdr 1 org-emphasis-regexp-components) "​ [:space:]- \t.,:!?;'\")}\\") +(org-set-emph-re 'org-emphasis-regexp-components org-emphasis-regexp-components)