From 2f0ed0ef0015b0df7b8a31abafed5234d36f8d11 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Mon, 2 Jan 2023 13:43:52 +0000 Subject: Fix order of theme loading --- init.el | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/init.el b/init.el index 449cba1..42fa492 100644 --- a/init.el +++ b/init.el @@ -311,23 +311,22 @@ https://yannherklotz.com")) (use-package modus-themes :ensure t :init - (defun ymh/modus-themes-coq-custom-faces () - (modus-themes-with-colors - (custom-set-faces - `(proof-locked-face ((,c :background ,bg-cyan-nuanced :extend t))) - `(proof-queue-face ((,c :background ,bg-magenta-nuanced :extend t)))))) - (add-hook 'modus-themes-after-load-theme-hook #'ymh/modus-themes-coq-custom-faces) (setq modus-themes-common-palette-overrides '((bg-mode-line-active bg-cyan-subtle) (border-mode-line-active bg-cyan-subtle) (bg-mode-line-inactive bg-cyan-nuanced) (border-mode-line-inactive bg-cyan-nuanced) (fg-region unspecified) - (bg-region bg-green-subtle) - (proof-locked bg-green-subtle))) + (bg-region bg-green-subtle))) (setq modus-themes-to-toggle '(modus-operandi-tintd modus-vivendi-tinted)) :config + (defun ymh/modus-themes-coq-custom-faces () + (modus-themes-with-colors + (custom-set-faces + `(proof-locked-face ((,c :background ,bg-cyan-nuanced :extend t))) + `(proof-queue-face ((,c :background ,bg-magenta-nuanced :extend t)))))) + (add-hook 'modus-themes-after-load-theme-hook #'ymh/modus-themes-coq-custom-faces) (load-theme 'modus-vivendi-tinted 'no-confirm)) (use-package pass -- cgit