  '(erc-track-shorten-cutoff 4)
  '(erc-track-switch-from-erc nil)
  '(erc-track-when-inactive nil)
- '(erc-track-exclude '("&bitlbee"))
  '(erc-input-line-position -1)
  '(erc-timestamp-format "[%H:%M] ")
  '(erc-timestamp-format-left "[%H:%M] ")
  '(erc-insert-timestamp-function 'erc-insert-timestamp-left)
  '(erc-insert-away-timestamp-function 'erc-insert-timestamp-left)
+ '(erc-server-auto-reconnect nil)
  '(erc-timestamp-only-if-changed-flag nil)
 
  '(erc-modules '(autoaway

  (visual-line-mode)
  (adaptive-wrap-prefix-mode))

(defun pjones:erc-join-hook ()
  "Hook run after a channel join."
  ;; Automatically ignore IRC channels.
  (when (and (erc-default-target)
             (string-match-p "^#" (erc-default-target)))
    (add-to-list 'erc-track-exclude (erc-default-target))))

(add-hook 'erc-mode-hook   #'pjones:erc-mode-hook)
(add-hook 'erc-join-buffer #'pjones:erc-join-hook)

;;; erc-conf.el ends here

                 stamp
                 track
                 truncate)))

;; Always ignore the bitlbee control channel.
(add-to-list 'erc-track-exclude "&bitlbee")

(defun pjones:erc-connect (username)
  "Connect to an IRC network via ERC with USERNAME."
