Variable: ielm-dynamic-return
ielm-dynamic-return is a customizable variable defined in ielm.el.gz.
Value
t
Documentation
Controls whether RET (ielm-return) has intelligent behavior in IELM.
If nil, always insert newlines.
If point, insert newline if the point is in the middle of an sexp,
otherwise evaluate input. This is useful if you have
electric-pair-mode(var)/electric-pair-mode(fun), or a similar mode, enabled.
If any other non-nil value, insert newline for incomplete sexp input and evaluate input for complete sexps. This is similar to the behavior in text shells.
Probably introduced at or before Emacs version 31.1.
Source Code
;; Defined in /usr/src/emacs/lisp/ielm.el.gz
(defcustom ielm-dynamic-return t
"Controls whether \\<ielm-map>\\[ielm-return] has intelligent behavior in IELM.
If nil, always insert newlines.
If `point', insert newline if the point is in the middle of an sexp,
otherwise evaluate input. This is useful if you have
`electric-pair-mode', or a similar mode, enabled.
If any other non-nil value, insert newline for incomplete sexp input and
evaluate input for complete sexps. This is similar to the behavior in
text shells."
:type
'(radio
(const :tag "Always insert newline" nil)
(const
:tag
"Insert newline if point is in middle of sexp, otherwise evaluate input"
point)
(const
:tag
"Insert newline for incomplete sexp, otherwise evaluate input"
t)))