summary refs log tree commit diff stats
path: root/user
diff options
context:
space:
mode:
authorAlan Pearce2023-08-06 20:08:34 +0200
committerAlan Pearce2023-08-06 20:13:34 +0200
commit3f1c020881676afcf04d11dafa69d47e301240c4 (patch)
tree3041caf19d9f6585fd7036e748e6b81639e38c6f /user
parent29f884809f4906dd3e2820dba1fcf1fd6caea40c (diff)
downloadnixfiles-3f1c020881676afcf04d11dafa69d47e301240c4.tar.lz
nixfiles-3f1c020881676afcf04d11dafa69d47e301240c4.tar.zst
nixfiles-3f1c020881676afcf04d11dafa69d47e301240c4.zip
emacs: switch between stimmung themes in dark/light mode on macOS
Diffstat (limited to 'user')
-rw-r--r--user/settings/darwin.nix6
1 files changed, 4 insertions, 2 deletions
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