I use electric-pair mode to cause brackets to be automatically closed for me, so that when I enter (, { or [, the closing bracket is automatically also entered into the buffer and the cursor is placed between them. However, I cannot seem to get it to treat $ the same way. Perhaps it is related to the fact that TeX-insert-dollar is bound to $, and that presumably electric-pair doesn't treat $ the same way as (. I've tried fiddling along these lines, but I can't get the behaviour I want.
|
|
||||
|
|
|
In the end it was simpler than I thought.
This just removes the |
|||
|
|
|
For inserting stuff in LaTeX mode I use the following code in my .emacs:
Then typing |
||||
|
|
I use |
|||||||||||
|