diff options
author | Yann Herklotz <git@yannherklotz.com> | 2023-05-12 18:41:57 +0100 |
---|---|---|
committer | Yann Herklotz <git@yannherklotz.com> | 2023-05-12 18:42:22 +0100 |
commit | 2bfd03941bacf2d693079e188e38021c070ee6f5 (patch) | |
tree | d2760e9a96b5de0d55f236e18e73df0ca24334c5 /init.el | |
parent | e4ef883fba99bbc673ec8ccafdadb0f9096a2229 (diff) | |
download | ymh-emacs-2bfd03941bacf2d693079e188e38021c070ee6f5.tar.gz ymh-emacs-2bfd03941bacf2d693079e188e38021c070ee6f5.zip |
Call customisation function everytime the theme is changed
Diffstat (limited to 'init.el')
-rw-r--r-- | init.el | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -461,9 +461,7 @@ https://yannherklotz.com")) '(modus-operandi-tinted modus-vivendi-tinted)) (modus-themes-italic-constructs t) :config - (add-hook - 'modus-themes-after-load-theme-hook - (lambda () + (defun ymh-modus-theme-apply-customisations () (modus-themes-with-colors (custom-set-faces `(proof-locked-face ((,c :background ,bg-green-nuanced :extend t))) @@ -474,8 +472,11 @@ https://yannherklotz.com")) :box (:line-width -1 :color ,bg-red-intense :style nil)))) `(fill-column-indicator ((,c :background unspecified - :height unspecified))))))) - (modus-themes-load-theme 'modus-operandi-tinted)) + :height unspecified)))))) + (add-hook + 'modus-themes-after-load-theme-hook #'ymh-modus-theme-apply-customisations) + (modus-themes-load-theme 'modus-operandi-tinted) + (ymh-modus-theme-apply-customisations)) (use-package pass :ensure t |