I would like to do the following: activate some mode so that whenener I type the $
character in my buffer, it immediately gets replaced by <m>
.
Even better: when I type $
it puts <m></m>
and places the cursor between the matching tag pair.
I have no problem with the solution being quick and dirty, but I would need to be able to turn it on and off.
Context: I've started using PreTeXt, which is basically "laTeX meets xml", to write a math text. It works very well, but having to type <m>
all the time is damaging my productivity (I'm already enjoying c-C ]
to close the tags.)