New answers tagged electric-pair-mode
0
I think it could be simpler, based on @xuhdev's answer:
(setq electric-pair-inhibit-predicate (lambda (c) (char-equal c ?\")))
The doc says
The function is called with a single char (the opening char just
inserted). If it returns non-nil, then ‘electric-pair-mode’ will not
insert a matching closer.
So the lambda only needs to return a boolean.
Top 50 recent answers are included
Related Tags
electric-pair-mode × 27auctex × 6
latex × 3
balanced-parentheses × 3
delimiters × 2
org-mode × 1
init-file × 1
indentation × 1
debugging × 1
customize × 1
yasnippet × 1
text-editing × 1
minibuffer × 1
region × 1
minor-mode × 1
auto-complete-mode × 1
web-mode × 1
advice × 1
syntax-table × 1
cc-mode × 1
quote × 1
syntax × 1
emacs24.4 × 1
linum-mode × 1
js2-mode × 1