Skip to content

Inserting parentheses with electric-pair-mode #76

Description

@linwaytin

First, thanks for this great package! I use it almost every day.

I found that the insertion mechanism has some inconsistency when I have a pair after lr.
The problem rises from the electric-pair-mode, which I also use frequently.
Thus when typing lr( or lr[, I get lr() or lr[], with the cursor in the middle of the parentheses.
In this case, I can still hit <tab> and expand the sequence.

The problem is that lr() becomes \left( \right)).
While this is reasonable due to the additional ) at the end, I notice that lr[] does become \left[ \right], as wanted, so I'm wondering if we can get the similar expansion for lr(), i.e. \left( \right).

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions