Variable: erc-imenu-mode-hook

erc-imenu-mode-hook is a customizable variable defined in erc-imenu.el.gz.

Value

nil

Documentation

Hook run after entering or leaving erc-imenu-mode(var)/erc-imenu-mode(fun).

No problems result if this variable is not bound. add-hook automatically binds it. (This is true for all hook variables.)

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc-imenu.el.gz
;;;###autoload(autoload 'erc-imenu-mode "erc-imenu" nil t)
(define-erc-module imenu nil
  "Simple Imenu integration for ERC."
  ((add-hook 'erc-mode-hook #'erc-imenu-setup)
   (unless erc--updating-modules-p (erc-buffer-do #'erc-imenu-setup)))
  ((remove-hook 'erc-mode-hook #'erc-imenu-setup)
   (erc-with-all-buffers-of-server nil nil
     (when erc-imenu--create-index-function
       (setq imenu-create-index-function erc-imenu--create-index-function)
       (kill-local-variable 'erc-imenu--create-index-function)))))