From b58049b988d59402295746d364bb9bb4f957e4c0 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Tue, 3 Jan 2023 23:38:53 -0500 Subject: theme: Use modus-themes-with-colors modus-themes-color is deprecated in v4.0.0. --- init.el | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/init.el b/init.el index 080bca1..7126994 100644 --- a/init.el +++ b/init.el @@ -63,11 +63,12 @@ (add-to-list 'modus-themes-org-agenda '(header-block . (no-scale))) (defun km/modus-themes-set-custom-faces () - (when (featurep 'git-annex) - (set-face-attribute 'git-annex-dired-annexed-available nil - :foreground (modus-themes-color 'green)) - (set-face-attribute 'git-annex-dired-annexed-unavailable nil - :foreground (modus-themes-color 'red)))) + (modus-themes-with-colors + (when (featurep 'git-annex) + (set-face-attribute 'git-annex-dired-annexed-available nil + :foreground green) + (set-face-attribute 'git-annex-dired-annexed-unavailable nil + :foreground red)))) (add-hook 'modus-themes-after-load-theme-hook #'km/modus-themes-set-custom-faces) -- cgit v1.2.3