Q: how can I tweak smartparens's decision rules for when to
insert a paired or single character?
smartparens seems to be mostly smart when inserting single
quotes (e.g., in text-mode or org-mode). Hence, it default to
inserting a pair of 's and placing the cursor in between them,
but, when invoked at the end of a word, only inserts a single '
in anticipation of contractions. So, e.g.:
'=>'*'(where*is point)can + '=>can'*(so I can continue to write "can't")
However, there's a hiccup I'm looking to fix. I often use
abbreviations that end in a period, but would like to make them
possessive. For example, I might write "s.o." as an abbreviation
for "someone," and therefore "s.o.'s" would be "someone's." The
problem is that smartparens inserts a paired-' after a period:
- what I want:
s.o. + '=>s.o.'* - what I get:
s.o. + '=>s.o.'*'
My specific quibble is with smartparens's behavior on ', but I
can imagine this being a more general issue with other characters
as well.
So: how can I tweak smartparens's decision rule to expand the
set of characters after which it only inserts a single '?
PS: amusingly, trying to type "`smartparens`'s" in emacs gives the same irritating behavior.