Is there a way to define an org entity in a way that it does not require a backslash?

Specifically, I want := to show up as ≔ in my buffer, and export as such.

If I do...

(add-to-list 'org-entities-user
             '(":=" "\\coloneq" t "≔" ":=" ":=" "≔"))

I need to add a backslash before the symbol. Is there a way to achieve what I want?

2 points · 1 comments · view on lemmy.world

1 Comments

yantar92@communick.news · 1 pts · 2y

Entity syntax involves backslash. As an alternative, you may define a custom export filter + custom font-lock keyword.