Function: erc-mode

erc-mode is a byte-compiled function defined in erc.el.gz.

Signature

(erc-mode)

Documentation

Major mode for Emacs IRC.

This mode runs the hook erc-mode-hook, as the final or penultimate step during initialization.

         undefined
<home> erc-bol
C-M-i ispell-complete-word
C-a erc-bol
C-c C-a erc-bol
C-c C-b erc-switch-to-buffer
C-c C-d erc-input-action
C-c C-e erc-toggle-ctcp-autoresponse
C-c C-f erc-toggle-flood-control
C-c C-j erc-join-channel
C-c C-n erc-channel-names
C-c C-o erc-get-channel-mode-from-keypress
C-c C-p erc-part-from-channel
C-c C-q erc-quit-server
C-c C-r erc-remove-text-properties-region
C-c C-t erc-set-topic
C-c C-u erc-kill-input
C-c C-x erc-quit-server
C-c TAB erc-invite-only-mode
RET erc-send-current-line
TAB erc-tab

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
;; Mode activation routines

(define-derived-mode erc-mode fundamental-mode "ERC"
  "Major mode for Emacs IRC."
  :interactive nil
  (setq local-abbrev-table erc-mode-abbrev-table)
  (setq-local next-line-add-newlines nil)
  (setq line-move-ignore-invisible t)
  (setq-local paragraph-separate
              (concat "\C-l\\|\\(^" (regexp-quote (erc-prompt)) "\\)"))
  (setq-local paragraph-start
              (concat "\\(" (regexp-quote (erc-prompt)) "\\)"))
  (setq-local completion-ignore-case t)
  (add-hook 'post-command-hook #'erc-check-text-conversion nil t)
  (add-hook 'kill-buffer-hook #'erc-kill-buffer-function nil t)
  (add-hook 'completion-at-point-functions #'erc-complete-word-at-point nil t)
  (add-function :before (local 'erc--clear-function)
                #'erc--skip-past-headroom-on-clear '((depth . 30))))