unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* inhibit electric-pair-mode conditionally
@ 2016-04-18 12:50 Mohammed Sadik
  2016-04-18 15:42 ` Stefan Monnier
  0 siblings, 1 reply; 3+ messages in thread
From: Mohammed Sadik @ 2016-04-18 12:50 UTC (permalink / raw)
  To: emacs-devel

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?



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-04-18 16:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-18 12:50 inhibit electric-pair-mode conditionally Mohammed Sadik
2016-04-18 15:42 ` Stefan Monnier
2016-04-18 16:02   ` Mohammed Sadik

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).