From 3f1c020881676afcf04d11dafa69d47e301240c4 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 6 Aug 2023 20:08:34 +0200 Subject: emacs: switch between stimmung themes in dark/light mode on macOS --- user/settings/darwin.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'user/settings') diff --git a/user/settings/darwin.nix b/user/settings/darwin.nix index 699caa40..65200305 100644 --- a/user/settings/darwin.nix +++ b/user/settings/darwin.nix @@ -115,10 +115,12 @@ emacsSwitchTheme () { if pgrep -q Emacs; then if [[ $MODE == "dark" ]]; then - $emacsclient --eval "(modus-themes-load-theme (cadr modus-themes-to-toggle))" \ + $emacsclient \ + --eval "(stimmung-themes-load-dark)" \ --eval "(modify-all-frames-parameters '((ns-appearance '$MODE)))" elif [[ $MODE == "light" ]]; then - $emacsclient --eval "(modus-themes-load-theme (car modus-themes-to-toggle))" \ + $emacsclient \ + --eval "(stimmung-themes-load-light)" \ --eval "(modify-all-frames-parameters '((ns-appearance '$MODE)))" fi fi -- cgit 1.4.1