about summary refs log tree commit diff stats
path: root/init.el
diff options
context:
space:
mode:
authorCase Duckworth2021-08-08 22:48:50 -0500
committerCase Duckworth2021-08-08 22:48:50 -0500
commitd06004ca6752003212f6fcee60bb7f9e0ac85545 (patch)
treee4eb284403f193dcb4a67528cb6062b41a45fd43 /init.el
parentAdd `eshell-buffer-name` (diff)
downloademacs-d06004ca6752003212f6fcee60bb7f9e0ac85545.tar.gz
emacs-d06004ca6752003212f6fcee60bb7f9e0ac85545.zip
Add guard to erc-hl-nicks
Diffstat (limited to 'init.el')
-rw-r--r--init.el22
1 files changed, 12 insertions, 10 deletions
diff --git a/init.el b/init.el index 4e4b3e4..4c2e610 100644 --- a/init.el +++ b/init.el
@@ -353,16 +353,18 @@
353 ) 353 )
354 354
355 (with-eval-after-load 'erc 355 (with-eval-after-load 'erc
356 (setup (:straight erc-hl-nicks) 356 (when (acdw/system :work)
357 (:option (append erc-modules) 'hl-nicks 357 ;; IDK why, but on 28 this bit doesn't work -- which is at home.
358 erc-hl-nicks-minimum-contrast-ratio 4.5 358 (setup (:straight erc-hl-nicks)
359 erc-hl-nicks-color-contrast-strategy '(invert contrast)) 359 (:option (append erc-modules) 'hl-nicks
360 (:hook-into erc-mode) 360 erc-hl-nicks-minimum-contrast-ratio 4.5
361 ;; Refresh nick colors after changing modus theme 361 erc-hl-nicks-color-contrast-strategy '(invert contrast))
362 ;; Ideally, there'd be a hook for /any/ time we changed theme... but 362 (:hook-into erc-mode)
363 ;; whatever. 363 ;; Refresh nick colors after changing modus theme
364 (add-hook 'modus-themes-after-load-theme-hook 364 ;; Ideally, there'd be a hook for /any/ time we changed theme... but
365 #'erc-hl-nicks-refresh-colors)) 365 ;; whatever.
366 (add-hook 'modus-themes-after-load-theme-hook
367 #'erc-hl-nicks-refresh-colors)))
366 368
367 ;; (setup (:straight erc-image) 369 ;; (setup (:straight erc-image)
368 ;; (:option (append erc-modules) 'image 370 ;; (:option (append erc-modules) 'image