diff options
author | Kyle Meyer <kyle@kyleam.com> | 2023-01-03 23:38:53 -0500 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2023-01-03 23:39:54 -0500 |
commit | 7f9872ea08277dd0fa51866a492312b947b7f638 (patch) | |
tree | 8bdf4df7c1ac8e7dc0973b40effc2084f21f5dda | |
parent | 07bb1debd8a9556dd013afd8fc724f06a46da8cc (diff) | |
download | emacs.d-7f9872ea08277dd0fa51866a492312b947b7f638.tar.gz |
theme: Fix git-annex.el face overrides
Use modus-themes-load-theme so that modus-themes-after-load-theme-hook
is triggered, don't try to set face if it is not yet defined, and
trigger modus-themes-after-load-theme-hook when git-annex.el loads.
-rw-r--r-- | init.el | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -63,14 +63,15 @@ (add-to-list 'modus-themes-org-agenda '(header-block . (no-scale))) (defun km/modus-themes-set-custom-faces () - (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))) + (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)))) (add-hook 'modus-themes-after-load-theme-hook #'km/modus-themes-set-custom-faces) - (load-theme 'modus-operandi t)) + (modus-themes-load-theme 'modus-operandi)) ;;; Custom prefix maps @@ -889,7 +890,8 @@ (use-package git-annex :config - (setq git-annex-commit nil)) + (setq git-annex-commit nil) + (run-hooks 'modus-themes-after-load-theme-hook)) (use-package compat :load-path "~/src/emacs/compat/") |