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
commit

3f1c020881676afcf04d11dafa69d47e301240c4

parent

29f884809f4906dd3e2820dba1fcf1fd6caea40c

1 file 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