feat(org): Hide spaces between CJK and markup characters
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user