Variable: erc-ring-mode
erc-ring-mode is a customizable variable defined in erc-ring.el.gz.
Value
nil
Documentation
Non-nil if Erc-Ring mode is enabled.
See the erc-ring-mode(var)/erc-ring-mode(fun) command
for a description of this minor mode.
Setting this variable directly does not take effect;
either customize it (see the info node (emacs)Easy Customization)
or call the function erc-ring-mode(var)/erc-ring-mode(fun).
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc-ring.el.gz
;;;###autoload(autoload 'erc-ring-mode "erc-ring" nil t)
(define-erc-module ring nil
"Stores input in a ring so that previous commands and messages can
be recalled using M-p and M-n."
((add-hook 'erc--input-review-functions #'erc-add-to-input-ring 90)
(define-key erc-mode-map "\M-p" #'erc-previous-command)
(define-key erc-mode-map "\M-n" #'erc-next-command))
((remove-hook 'erc--input-review-functions #'erc-add-to-input-ring)
(define-key erc-mode-map "\M-p" #'undefined)
(define-key erc-mode-map "\M-n" #'undefined)))