Updated to erc config

This commit is contained in:
Random936
2025-08-03 10:17:50 -07:00
parent 0603a1d27a
commit 3d5bbbc4cc

View File

@@ -15,6 +15,7 @@ ERC is a built-in package that adds IRC chatting functionality to emacs.
(erc-track-exclude-types '("JOIN" "NICK" "PART" "QUIT" "MODE" (erc-track-exclude-types '("JOIN" "NICK" "PART" "QUIT" "MODE"
"353" "324" "329" "332" "333" "353" "477")) "353" "324" "329" "332" "333" "353" "477"))
(erc-autojoin-channels-alist '((".*\.libera\.chat" "#emacs" "#nixos" "#systemcrafters"))) (erc-autojoin-channels-alist '((".*\.libera\.chat" "#emacs" "#nixos" "#systemcrafters")))
(erc-join-buffer 'buffer)
(erc-fill-column 120) (erc-fill-column 120)
(erc-fill-function 'erc-fill-wrap) (erc-fill-function 'erc-fill-wrap)
(erc-fill-static-center 20) (erc-fill-static-center 20)
@@ -23,21 +24,27 @@ ERC is a built-in package that adds IRC chatting functionality to emacs.
(erc-kill-server-buffer-on-quit t) (erc-kill-server-buffer-on-quit t)
:config :config
(add-to-list 'erc-modules 'notifications) (add-to-list 'erc-modules 'notifications)
(add-to-list 'erc-modules 'scrolltobottom) (add-to-list 'erc-modules 'scrolltobottom))
#+end_src #+end_src
* ERC Extensions * Highlight Nicknames
To highlight each nickname with a different color, I can use the ~erc-hl-nicks~ package. I can also use the ~erc-image~ package to render images sent by other users over IRC. To highlight each nickname with a different color, I can use the ~erc-hl-nicks~ package.
#+begin_src elisp #+begin_src elisp
(use-package erc-hl-nicks (use-package erc-hl-nicks
:after erc :after erc
:config (add-to-list 'erc-modules 'hl-nicks)) :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 (use-package erc-image
:after erc :after erc
:config :config
(setq erc-image-inline-rescale 300) (setq erc-image-inline-rescale 300)
(add-to-list 'erc-modules 'image)) (add-to-list 'erc-modules 'image))
#+end_src #+end_src