I am used to bind my YASnippet trigger keys to sequences that start with
< (e.g. when I type
<hn in org-mode, it expands to a custom header for my notes).
The problem is that in some modes, the
< character is part of electric pairs (I have
electric-pair-mode enabled), which automatically writes a closing
> when I type it. As a consequence, my snippet expansions are followed by an unwanted
< character is not in
electric-pair-pairs nor in
electric-pair-text-pairs, so it does not seem easy to just avoid electric pairing for this character (which, besides, I do not want for certain modes).
How should I go about it?
Is there a way to make YASnippet delete the
> character at expansion, before the actual expansion is written?