From 7071871ce4617412cd2f648822ae6fcce9b94bf0 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Wed, 9 Jun 2021 21:48:31 -0500 Subject: Load erc module after erc --- init.el | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/init.el b/init.el index 48dd80c..77d7c62 100644 --- a/init.el +++ b/init.el @@ -336,12 +336,23 @@ erc-track-mode erc-truncate-mode) - ;; (setup (:straight erc-hl-nicks) - ;; (with-eval-after-load 'erc - ;; (require 'erc-hl-nicks) - ;; (:option erc-hl-nicks-minimum-contrast-ratio 4.5) - ;; (:hook-into erc-mode))) - ) + (with-eval-after-load 'erc + (setup (:straight erc-hl-nicks) + (:option (append erc-modules) 'hl-nicks + erc-hl-nicks-minimum-contrast-ratio 4.5 + erc-hl-nicks-color-contrast-strategy '(invert contrast)) + (:hook-into erc-mode) + ;; Refresh nick colors after changing modus theme + ;; Ideally, there'd be a hook for /any/ time we changed theme... but + ;; whatever. + (add-hook 'modus-themes-after-load-theme-hook + #'erc-hl-nicks-refresh-colors)) + + (setup (:straight erc-image) + (:option (append erc-modules) 'image + erc-image-inline-rescale 'window)) + + (erc-update-modules))) (setup eshell (:also-load acdw-eshell -- cgit 1.4.1-21-gabe81