From d06004ca6752003212f6fcee60bb7f9e0ac85545 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Sun, 8 Aug 2021 22:48:50 -0500 Subject: Add guard to erc-hl-nicks --- init.el | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'init.el') diff --git a/init.el b/init.el index 4e4b3e4..4c2e610 100644 --- a/init.el +++ b/init.el @@ -353,16 +353,18 @@ ) (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)) + (when (acdw/system :work) + ;; IDK why, but on 28 this bit doesn't work -- which is at home. + (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 -- cgit 1.4.1-21-gabe81