Variable: electric-quote-replace-consecutive

electric-quote-replace-consecutive is a customizable variable defined in electric.el.gz.

Value

t

Documentation

Non-nil means to replace a pair of single quotes with a double quote.

If electric-quote-replace-consecutive is non-nil and electric-quote-mode(var)/electric-quote-mode(fun) is enabled, as you type Emacs replaces two single quotes with the corresponding double quote when the second quote of the pair is entered (i.e. by typing ` or ') by default. For example, with the default setting of electric-quote-chars, if you type
``, Emacs replaces both characters with a single “.

If this option is nil, the single quotes are not altered.

The replacing double quote characters are defined by electric-quote-chars.

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

Probably introduced at or before Emacs version 29.1.

Source Code

;; Defined in /usr/src/emacs/lisp/electric.el.gz
(defcustom electric-quote-replace-consecutive t
  "Non-nil means to replace a pair of single quotes with a double quote.
If `electric-quote-replace-consecutive' is non-nil and
`electric-quote-mode' is enabled, as you type Emacs replaces two single
quotes with the corresponding double quote when the second quote of the
pair is entered (i.e. by typing \\=` or \\=') by default.  For example,
with the default setting of `electric-quote-chars', if you type
\\=`\\=`, Emacs replaces both characters with a single “.

If this option is nil, the single quotes are not altered.

The replacing double quote characters are defined by
`electric-quote-chars'."
  :version "29.1"
  :type 'boolean
  :safe #'booleanp
  :group 'electricity)