diff options
-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/") |