summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2023-01-03 23:38:53 -0500
committerKyle Meyer <kyle@kyleam.com>2023-01-03 23:39:54 -0500
commit07bb1debd8a9556dd013afd8fc724f06a46da8cc (patch)
tree3c0edb8ad4213e12aa80ee9148dc8f6cc8632246
parentd726f3687a98ab5efc9d4e0bd29563fb156574ff (diff)
downloademacs.d-07bb1debd8a9556dd013afd8fc724f06a46da8cc.tar.gz
Use named function for setting custom faces
-rw-r--r--init.el12
1 files changed, 7 insertions, 5 deletions
diff --git a/init.el b/init.el
index 1c9ee1a..2eddc6f 100644
--- a/init.el
+++ b/init.el
@@ -62,12 +62,14 @@
:config
(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)))
(add-hook 'modus-themes-after-load-theme-hook
- (lambda ()
- (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))))
+ #'km/modus-themes-set-custom-faces)
+
(load-theme 'modus-operandi t))