Variable: erc-autojoin-mode

erc-autojoin-mode is a customizable variable defined in erc-join.el.gz.

Value

nil

Documentation

Non-nil if Erc-Autojoin mode is enabled.

See the erc-autojoin-mode(var)/erc-autojoin-mode(fun) command for a description of this minor mode. Setting this variable directly does not take effect; either customize it (see the info node (emacs)Easy Customization) or call the function erc-autojoin-mode(var)/erc-autojoin-mode(fun).

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc-join.el.gz
;;;###autoload(autoload 'erc-autojoin-mode "erc-join" nil t)
(define-erc-module autojoin nil
  "Makes ERC autojoin on connects and reconnects."
  ((add-hook 'erc-after-connect #'erc-autojoin-channels)
   (add-hook 'erc-nickserv-identified-hook #'erc-autojoin-after-ident)
   (add-hook 'erc-server-JOIN-functions #'erc-autojoin-add)
   (add-hook 'erc-server-PART-functions #'erc-autojoin-remove)
   (add-hook 'erc-server-405-functions #'erc-join--remove-requested-channel)
   (add-hook 'erc-server-471-functions #'erc-join--remove-requested-channel)
   (add-hook 'erc-server-473-functions #'erc-join--remove-requested-channel)
   (add-hook 'erc-server-474-functions #'erc-join--remove-requested-channel)
   (add-hook 'erc-server-475-functions #'erc-join--remove-requested-channel))
  ((remove-hook 'erc-after-connect #'erc-autojoin-channels)
   (remove-hook 'erc-nickserv-identified-hook #'erc-autojoin-after-ident)
   (remove-hook 'erc-server-JOIN-functions #'erc-autojoin-add)
   (remove-hook 'erc-server-PART-functions #'erc-autojoin-remove)
   (remove-hook 'erc-server-405-functions #'erc-join--remove-requested-channel)
   (remove-hook 'erc-server-471-functions #'erc-join--remove-requested-channel)
   (remove-hook 'erc-server-473-functions #'erc-join--remove-requested-channel)
   (remove-hook 'erc-server-474-functions #'erc-join--remove-requested-channel)
   (remove-hook 'erc-server-475-functions #'erc-join--remove-requested-channel)
   (erc-buffer-do (lambda ()
                    (kill-local-variable 'erc-join--requested-channels)))))