Configure
Set some defaults.
(with-eval-after-load 'rcirc
(setopt rcirc-default-nick "rudy1983"
rcirc-default-user-name "rudy1983"
rcirc-default-full-name "Rudolf Adamkovič"))
Use SASL (Simple Authentication and Security Layer) to make LiberaChat work over VPNs and the like.
(with-eval-after-load 'rcirc
(setopt rcirc-authinfo
`(("irc.libera.chat"
sasl
;; BUG The following field is not used.
;; To reproduce:
;; 1. Unset 'rcirc-default-user-name' above.
;; 2. Set 'rcirc-debug-flag' to 't'
;; 3. Watch "*rcirc debug*".
"this-is-ignored"
,(password-store-get "libera-chat")))))
Automatically connect to interesting channels on LiberaChat.
(with-eval-after-load 'rcirc
(setopt rcirc-server-alist
`(("irc.libera.chat"
:channels ("#emacs"
"#org-mode"
"#fennel"
"#systemcrafters")))))
Show mode-line notifications for new messages.
(with-eval-after-load 'rcirc
;; TODO Contribute this; [] is not shown initially but then stays.
;; either run this function or change 'rcirc-activity-string'
;; default. Or, do not show anything where there are no
;; notifications (perhaps make two patches).
(add-hook 'rcirc-mode-hook #'rcirc-track-minor-mode))
Notify only about the messages that mention us.
(with-eval-after-load 'rcirc
;; NOTE Not `custom'-settable.
(setq-default rcirc-ignore-buffer-activity-flag t))
Hide uninteresting informational messages, such as people joining or quitting, for all but recently active nicks.
(with-eval-after-load 'rcirc
;; (add-to-list 'rcirc-omit-responses "AWAY")
(add-hook 'rcirc-mode-hook #'rcirc-omit-mode))
Note. To reconnect, execute the /reconnect command.