diff --git a/lisp/init-org.el b/lisp/init-org.el index 3a98971..82bc0d3 100644 --- a/lisp/init-org.el +++ b/lisp/init-org.el @@ -12,6 +12,13 @@ (org-mode . electric-pair-local-mode) :config + (defvar org-hide-space-keywords + '(("\\cc\\( \\)[*/_=~+]\\cc.*?[*/_=~+]" + (0 (prog1 () (add-text-properties (match-beginning 1) (match-end 1) '(invisible t))))) + ("[*/_=~+].*?\\cc[*/_=~+]\\( \\)\\cc" + (0 (prog1 () (add-text-properties (match-beginning 1) (match-end 1) '(invisible t))))))) + (font-lock-add-keywords 'org-mode org-hide-space-keywords 'append) + (if *is-windows* (add-hook 'org-mode-hook 'font-lock-update))