Function: erc-readonly-mode

erc-readonly-mode is an interactive and byte-compiled function defined in erc-goodies.el.gz.

Signature

(erc-readonly-mode &optional ARG)

Documentation

Toggle ERC readonly mode.

With a prefix argument ARG, enable readonly if ARG is positive, and disable it otherwise. If called from Lisp, enable the mode if ARG is omitted or nil. This mode causes all inserted text to be read-only.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc-goodies.el.gz
;;; Make read only
(define-erc-module readonly nil
  "This mode causes all inserted text to be read-only."
  ((add-hook 'erc-insert-post-hook #'erc-make-read-only)
   (add-hook 'erc-send-post-hook #'erc-make-read-only))
  ((remove-hook 'erc-insert-post-hook #'erc-make-read-only)
   (remove-hook 'erc-send-post-hook #'erc-make-read-only)))