Variable: electric-pair-open-newline-between-pairs

electric-pair-open-newline-between-pairs is a customizable variable defined in elec-pair.el.gz.

Documentation

Whether to insert an extra newline between matching delimiters.

If non-nil, then when an opening delimiter immediately precedes a matching closing delimiter and point is between them, typing a newline automatically inserts an extra newline after point. If nil, just one newline is inserted before point.

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-open-newline-between-pairs t
  "Whether to insert an extra newline between matching delimiters.
If non-nil, then when an opening delimiter immediately precedes a
matching closing delimiter and point is between them, typing a newline
automatically inserts an extra newline after point.  If nil, just one
newline is inserted before point.

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))