[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

inhibit electric-pair-mode conditionally

From: Mohammed Sadik
Subject: inhibit electric-pair-mode conditionally
Date: Mon, 18 Apr 2016 18:20:01 +0530

Is there a way to disable electric-pair-mode conditionally?
Say, I have to disable electric-pair on inserting '{', but if the char
before '{' is not space.
Actually, I have even more complicated situation to handle.

It would be enough to connect some function to electric-pair (with
hooks, or so),
such that if the function returns nil, don't do completion, else do.

Is it possible?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]