From 118b31a90a43aece28855286bf9f79f4e2a8b20c Mon Sep 17 00:00:00 2001 From: Random936 Date: Thu, 21 Dec 2023 12:32:33 -0800 Subject: [PATCH] Fixed ERC join buffers with perspective --- .emacs.d/config.org | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.emacs.d/config.org b/.emacs.d/config.org index c165a74..4c1ce7d 100644 --- a/.emacs.d/config.org +++ b/.emacs.d/config.org @@ -479,6 +479,10 @@ ERC is a builtin package that adds IRC chatting functionality to emacs. erc-fill-function 'erc-fill-static erc-fill-static-center 20 erc-kill-buffer-on-part t) + +; Fix for perspective.el not adding ERC buffers to active perspective. +(add-hook 'erc-join-hook (lambda (&rest args) + (persp-add-buffer (current-buffer)))) #+end_src 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.