all repos — nixfiles @ 3f1c020881676afcf04d11dafa69d47e301240c4

System and user configuration, managed by nix and home-manager

emacs: switch between stimmung themes in dark/light mode on macOS
Alan Pearce alan@alanpearce.eu
Sun, 06 Aug 2023 20:08:34 +0200
commit

3f1c020881676afcf04d11dafa69d47e301240c4

parent

29f884809f4906dd3e2820dba1fcf1fd6caea40c

1 files changed, 4 insertions(+), 2 deletions(-)

jump to
M user/settings/darwin.nixuser/settings/darwin.nix
@@ -115,10 +115,12 @@ emacsclient="${config.programs.emacs.finalPackage}/bin/emacsclient"                     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