My question is motivated by writing TeX in emacs, but not related to the TeX system itself.
My goal is to set abbreviations in emacs to replace some (TeX) macros with their Unicode characters, like \ alpha with Ξ± automatically, while I type TeX in emacs.
I planned to achieve this using the acronym system. Although the following abbreviation works fine (replaces the test with \ test):
("test" "\\test" nil 0)
Abbreviations that can do what I want, i.e.:
("\\alpha" "A" nil 0)
or
("\\\\beta" "B" nil 0)
do not apply when entering \ alpha or \ beta.
(I could get around this by replacing the alpha itself and erasing one previous character, but I would like to keep the alpha input option without a backslash and not apply this abbreviation rule.)
What is the correct form of the abbreviation that replaces \ alpha with Ξ±?
source share