Function: life-mode

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

Signature

(life-mode)

Documentation

Major mode for the buffer of life.

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

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/play/life.el.gz
(define-derived-mode life-mode special-mode "Life"
  "Major mode for the buffer of `life'."
  (setq-local case-fold-search nil)
  (setq-local truncate-lines t)
  (setq-local show-trailing-whitespace nil)
  (setq-local life-current-generation 0)
  (setq-local life-generation-string "0")
  (setq-local mode-line-buffer-identification '("Life: generation "
                                                life-generation-string))
  (setq-local fill-column (min (or life--max-width most-positive-fixnum)
                               (1- (window-width))))
  (setq-local life-window-start 1)
  (buffer-disable-undo))