Function: command-history-mode

command-history-mode is an interactive and byte-compiled function defined in chistory.el.gz.

Signature

(command-history-mode)

Documentation

Major mode for listing and repeating recent commands.

Keybindings:
- negative-argument
0 digit-argument
1 digit-argument
2 digit-argument
3 digit-argument
4 digit-argument
5 digit-argument
6 digit-argument
7 digit-argument
8 digit-argument
9 digit-argument
< beginning-of-buffer
<keymap> C-M-q indent-sexp
<keymap> C-M-q prog-indent-sexp
<keymap> M-q prog-fill-reindent-defun
> end-of-buffer
? describe-mode
C-j next-line
DEL previous-line
DEL scroll-down-command
RET next-line
S-SPC scroll-down-command
SPC scroll-up-command
SPC..~ undefined
g revert-buffer
h describe-mode
q quit-window
x command-history-repeat

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

Probably introduced at or before Emacs version 16.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/chistory.el.gz
(define-derived-mode command-history-mode special-mode "Command History"
  "Major mode for listing and repeating recent commands.

Keybindings:
\\{command-history-mode-map}"
  (lisp-mode-variables nil)
  (setq-local revert-buffer-function 'command-history-revert)
  (set-syntax-table emacs-lisp-mode-syntax-table))