Function: erc-command-indicator-mode

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

Signature

(erc-command-indicator-mode &optional ARG)

Documentation

Toggle ERC command-indicator mode locally.

If called interactively, enable erc-command-indicator-mode(var)/erc-command-indicator-mode(fun) if ARG is positive, and disable it otherwise. If called from Lisp, enable the mode if ARG is omitted or nil.

Echo command lines for "slash commands," like /JOIN, /HELP, etc. Skip those appearing in erc-noncommands-list.

Users can run M-x erc-command-indicator-toggle-hidden (erc-command-indicator-toggle-hidden) to hide and reveal echoed command lines after they've been inserted.

This module is local to individual buffers.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc-goodies.el.gz
;;;###autoload(autoload 'erc-command-indicator-mode "erc-goodies" nil t)
(define-erc-module command-indicator nil
  "Echo command lines for \"slash commands,\" like /JOIN, /HELP, etc.
Skip those appearing in `erc-noncommands-list'.

Users can run \\[erc-command-indicator-toggle-hidden] to hide and
reveal echoed command lines after they've been inserted.

This module is local to individual buffers."
  ((add-hook 'erc--input-review-functions
             #'erc--command-indicator-permit-insertion 80 t)
   (erc-command-indicator-toggle-hidden -1))
  ((remove-hook 'erc--input-review-functions
                #'erc--command-indicator-permit-insertion t)
   (erc-command-indicator-toggle-hidden +1))
  localp)