all repos — nixfiles @ 29a4d87684e4cb63b4100b3dcade4255f89f6128

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

darwin: use generic `(toggle-theme)` for dark/light switching
Alan Pearce alan@alanpearce.eu
Thu, 06 Feb 2025 17:49:33 +0100
commit

29a4d87684e4cb63b4100b3dcade4255f89f6128

parent

7dbf62563b7694315040d628e91f5149b241566c

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

jump to
M user/settings/darwin.nixuser/settings/darwin.nix
@@ -77,11 +77,11 @@ emacsSwitchTheme () {                         if pgrep -q Emacs; then
                           if [[  $MODE == "dark"  ]]; then
                               $emacsclient \
-                                --eval "(stimmung-themes-load-dark)" \
+                                --eval "(toggle-theme)" \
                                 --eval "(modify-all-frames-parameters '((ns-appearance '$MODE)))"
                           elif [[  $MODE == "light"  ]]; then
                               $emacsclient \
-                                --eval "(stimmung-themes-load-light)" \
+                                --eval "(toggle-theme)" \
                                 --eval "(modify-all-frames-parameters '((ns-appearance '$MODE)))"
                           fi
                         fi