Function: lisp-interaction-mode

lisp-interaction-mode is an interactive and byte-compiled function defined in elisp-mode.el.gz.

Signature

(lisp-interaction-mode)

Documentation

Major mode for typing and evaluating Lisp forms.

Like Lisp mode except that M-x eval-print-last-sexp (eval-print-last-sexp) evals the Lisp expression before point, and prints its value into the buffer, advancing point. Note that printing is controlled by eval-expression-print-length and eval-expression-print-level.
- DEL (backward-delete-char-untabify) converts tabs to spaces as it moves back.
- Paragraphs are separated only by blank lines.
- Semicolons start comments.

C-M-i completion-at-point
C-M-q indent-pp-sexp
C-M-q indent-sexp
C-M-q prog-indent-sexp
C-M-x eval-defun
C-c C-b elisp-byte-compile-buffer
C-c C-e elisp-eval-region-or-buffer
C-j eval-print-last-sexp
DEL backward-delete-char-untabify
M-q prog-fill-reindent-defun

In addition to any hooks its parent mode emacs-lisp-mode might have run, this mode runs the hook lisp-interaction-mode-hook, as the final or penultimate step during initialization.

View in manual

Probably introduced at or before Emacs version 21.2.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/elisp-mode.el.gz
(define-derived-mode lisp-interaction-mode emacs-lisp-mode "Lisp Interaction"
  "Major mode for typing and evaluating Lisp forms.
Like Lisp mode except that \\[eval-print-last-sexp] evals the Lisp expression
before point, and prints its value into the buffer, advancing point.
Note that printing is controlled by `eval-expression-print-length'
and `eval-expression-print-level'.
\\<lisp-interaction-mode-map>
- \\[backward-delete-char-untabify] converts tabs to spaces as it moves back.
- Paragraphs are separated only by blank lines.
- Semicolons start comments.

\\{lisp-interaction-mode-map}"
  :abbrev-table nil
  (setq-local lexical-binding t))