Files
dot-emacs/.emacs.d/erc.org
2026-02-03 22:00:05 -05:00

53 lines
1.3 KiB
Org Mode

* ERC
ERC is a built-in package that adds IRC chatting functionality to emacs.
#+begin_src elisp
(jm/leader-keys
"cc" '(erc :which-key "Connect to ZNC Bouncer")
"cb" '(erc-switch-to-buffer :which-key "Switch IRC buffers"))
(use-package erc
:ensure nil
:defer t
:custom
(erc-nick "random936")
(erc-email-userid "admin/libera")
(erc-port 6501)
(erc-server "192.168.100.40")
(erc-track-exclude-types '("JOIN" "NICK" "PART" "QUIT" "MODE"
"353" "324" "329" "332" "333" "353" "477"))
(erc-join-buffer 'buffer)
(erc-fill-column 120)
(erc-fill-function 'erc-fill-wrap)
(erc-fill-static-center 20)
(erc-kill-buffer-on-part t)
(erc-kill-queries-on-quit t)
(erc-kill-server-buffer-on-quit t)
:config
(add-to-list 'erc-modules 'notifications)
(add-to-list 'erc-modules 'scrolltobottom))
#+end_src
* Highlight Nicknames
To highlight each nickname with a different color, I can use the ~erc-hl-nicks~ package.
#+begin_src elisp
(use-package erc-hl-nicks
:after erc
:config (add-to-list 'erc-modules 'hl-nicks))
#+end_src
* Render Images
I can use the ~erc-image~ package to render images sent by other users over IRC.
#+begin_src elisp
(use-package erc-image
:after erc
:config
(setq erc-image-inline-rescale 300)
(add-to-list 'erc-modules 'image))
#+end_src