Variable: electric-pair-delete-adjacent-pairs

electric-pair-delete-adjacent-pairs is a customizable variable defined in elec-pair.el.gz.

Value

t

Documentation

Whether to automatically delete a matching delimiter.

If non-nil, then when an opening delimiter immediately precedes a matching closing delimiter and point is between them, typing DEL (the backspace key) deletes both delimiters. If nil, only the opening delimiter is deleted.

The value of this variable can also be a function of no arguments, in which case that function's return value is considered instead.

This variable was added, or its default value changed, in Emacs 24.4.

View in manual

Probably introduced at or before Emacs version 24.4.

Source Code

;; Defined in /usr/src/emacs/lisp/elec-pair.el.gz
(defcustom electric-pair-delete-adjacent-pairs t
  "Whether to automatically delete a matching delimiter.
If non-nil, then when an opening delimiter immediately precedes a
matching closing delimiter and point is between them, typing DEL (the
backspace key) deletes both delimiters.  If nil, only the opening
delimiter is deleted.

The value of this variable can also be a function of no arguments, in
which case that function's return value is considered instead."
  :version "24.4"
  :group 'electricity
  :type '(choice
          (const :tag "Yes" t)
          (const :tag "No" nil)
          function))