Function: erc-readonly-mode

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

Signature

(erc-readonly-mode &optional ARG)

Documentation

Toggle ERC readonly mode.

If called interactively, enable erc-readonly-mode(var)/erc-readonly-mode(fun) 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
;;;###autoload(autoload 'erc-readonly-mode "erc-goodies" nil t)
(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 70)
   (add-hook 'erc-send-post-hook #'erc-make-read-only 70))
  ((remove-hook 'erc-insert-post-hook #'erc-make-read-only)
   (remove-hook 'erc-send-post-hook #'erc-make-read-only)))