diff options
author | Alan Pearce | 2023-08-06 20:08:34 +0200 |
---|---|---|
committer | Alan Pearce | 2023-08-06 20:13:34 +0200 |
commit | 3f1c020881676afcf04d11dafa69d47e301240c4 (patch) | |
tree | 3041caf19d9f6585fd7036e748e6b81639e38c6f | |
parent | 29f884809f4906dd3e2820dba1fcf1fd6caea40c (diff) | |
download | nixfiles-3f1c020881676afcf04d11dafa69d47e301240c4.tar.lz nixfiles-3f1c020881676afcf04d11dafa69d47e301240c4.tar.zst nixfiles-3f1c020881676afcf04d11dafa69d47e301240c4.zip |
emacs: switch between stimmung themes in dark/light mode on macOS
-rw-r--r-- | user/settings/darwin.nix | 6 |
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 |