From 64432a0a40de07c3701e5d8542e18ca0581be97f Mon Sep 17 00:00:00 2001 From: Random936 Date: Fri, 9 Feb 2024 14:53:03 -0800 Subject: [PATCH] Moved general shortcuts to avoid deferal --- .emacs.d/config.org | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.emacs.d/config.org b/.emacs.d/config.org index 594926c..bca53c8 100644 --- a/.emacs.d/config.org +++ b/.emacs.d/config.org @@ -476,6 +476,12 @@ This hides all dotfiles in dired with the keybinding ~H~. ERC is a builtin package that adds IRC chatting functionality to emacs. #+begin_src emacs-lisp + +;; Shotcuts for general +(jm/leader-keys + "cc" '(erc-tls :which-key "Connect to IRC over TLS") + "cb" '(erc-switch-to-buffer :which-key "Switch IRC buffers")) + (use-package erc :ensure nil :defer t @@ -492,11 +498,7 @@ ERC is a builtin package that adds IRC chatting functionality to emacs. ;; Fix for perspective.el not adding ERC buffers to active perspective. (add-hook 'erc-join-hook (lambda (&rest args) - (persp-add-buffer (current-buffer)))) - - (jm/leader-keys - "cc" '(erc-tls :which-key "Connect to IRC over TLS") - "cb" '(erc-switch-to-buffer :which-key "Switch IRC buffers"))) + (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.