Function: lisp-mode

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

Signature

(lisp-mode)

Documentation

Major mode for editing programs in Common Lisp and other similar Lisps.

Commands: Delete converts tabs to spaces as it moves back. Blank lines separate paragraphs. Semicolons start comments.

C-M-q indent-sexp
C-M-q prog-indent-sexp
C-M-x lisp-eval-defun
C-c C-a lisp-show-arglist
C-c C-c lisp-compile-defun
C-c C-d lisp-describe-sym
C-c C-e lisp-eval-defun
C-c C-f lisp-show-function-documentation
C-c C-k lisp-compile-file
C-c C-l lisp-load-file
C-c C-n lisp-eval-form-and-next
C-c C-p lisp-eval-paragraph
C-c C-r lisp-eval-region
C-c C-v lisp-show-variable-documentation
C-c C-z switch-to-lisp
C-x C-e lisp-eval-last-sexp
DEL backward-delete-char-untabify
M-q prog-fill-reindent-defun
Note that run-lisp may be used either to start an inferior Lisp job or to switch back to an existing one.

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

Probably introduced at or before Emacs version 16.

Key Bindings

Aliases

common-lisp-mode

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/lisp-mode.el.gz
(define-derived-mode lisp-mode lisp-data-mode "Lisp"
  "Major mode for editing programs in Common Lisp and other similar Lisps.
Commands:
Delete converts tabs to spaces as it moves back.
Blank lines separate paragraphs.  Semicolons start comments.

\\{lisp-mode-map}
Note that `run-lisp' may be used either to start an inferior Lisp job
or to switch back to an existing one."
  (setq-local lisp-indent-function 'common-lisp-indent-function)
  (setq-local find-tag-default-function 'lisp-find-tag-default)
  (setq-local comment-start-skip
	      "\\(\\(^\\|[^\\\n]\\)\\(\\\\\\\\\\)*\\)\\(;+\\|#|\\) *")
  (setq-local comment-end-skip "[ \t]*\\(\\s>\\||#\\)")
  (setq-local font-lock-comment-end-skip "|#")
  (setq imenu-case-fold-search t))