I am trying to add the verbatim character ~
(tilde) as an electric-pair character in org-mode
. Here is my attempt:
(with-eval-after-load 'org
(modify-syntax-entry ?/ "(/" org-mode-syntax-table)
(modify-syntax-entry ?= "(=" org-mode-syntax-table)
(modify-syntax-entry ?~ "(~" org-mode-syntax-table))
This works for the /
and =
characters, but not for ~
. What do I need to do to add ~
?