Hi all,

I'd like to be able to insert two dollar signs and put the point
between them when I type `$' outside math mode.  It seems I'm not the
only having this wish, see for example
http://stackoverflow.com/q/10367524
http://tex.stackexchange.com/q/75697
http://tex.stackexchange.com/a/24789
http://www.rouquier.org/jb/programmation/.emacs
Many people use code that don't know anything about TeX syntax and
usually don't check if point is inside or outside math mode.  I'm
sending a patch to do this in AUCTeX, of course I'm not changing the
default behaviour of `TeX-insert-dollar'.  If `blink-matching-paren'
is non-nil, the opening dollar blinks for a second, like when closing
`$...$' or `$$...$$'.

2013-02-13  Mosè Giordano  <giordano.m...@libero.it>

        * tex.el (TeX-math-close-single-dollar): New variable.
        (TeX-insert-dollar): Use it.


Bye,
Mosè Giordano

Attachment: tex.el.patch
Description: Binary data

_______________________________________________
auctex-devel mailing list
auctex-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-devel

Reply via email to