joaotavora / autopair

Automagically pair braces and quotes in emacs like TextMate
208 stars 35 forks source link

Pair only if not column 0 #54

Open PhilHudson opened 5 years ago

PhilHudson commented 5 years ago

In Org, I mostly want autopair's default pairing for < to work, except when it is the first character in a line (column 0), when I want plain self-insert-command. Org has a template insertion feature triggered by <s followed by TAB at the beginning of a line.

I may be missing something but I can't see how to achieve this with autopair's existing features.

Not a huge problem, since C-d removes the paired >, but annoying.