emacs: fix theme customisations not applying
1 file changed, 4 insertions(+), 4 deletions(-)
changed files
M user/settings/emacs/theme.el → user/settings/emacs/theme.el
@@ -13,9 +13,6 @@ (bg-mode-line-inactive bg-dim) (border-mode-line-active unspecified) (border-mode-line-inactive unspecified))) - (load-theme light-mode-theme :noconfirm :noenable) - (load-theme dark-mode-theme :noconfirm :noenable) - (defun my/modus-themes-custom (&rest _) (modus-themes-with-colors (custom-set-faces@@ -27,7 +24,10 @@ `(git-gutter-fr:added ((,c :foreground ,bg-added-fringe :background nil))) `(git-gutter-fr:deleted ((,c :foreground ,bg-removed-fringe :background nil))) `(git-gutter-fr:modified ((,c :foreground ,bg-changed-fringe :background nil)))))) - (add-hook 'modus-themes-after-load-theme-hook #'my/modus-themes-custom) + (add-hook 'enable-theme-functions #'my/modus-themes-custom) + + (load-theme light-mode-theme :noconfirm :noenable) + (load-theme dark-mode-theme :noconfirm :noenable) (defun my/switch-theme-variant (mode) (interactive (list