guidoschmidt / circadian.el

Theme-switching for Emacs based on daytime
https://guidoschmidt.github.io/circadian.el
MIT License
175 stars 8 forks source link

Provide list of themes for sunset/sunrise/timeslot #16

Closed guidoschmidt closed 5 months ago

guidoschmidt commented 6 years ago

Allow setting a list of themes, that should get loaded on a timeslot (or sunset/sunrise). When loading a theme, it should randomly get selected from that list

eitazhou commented 4 years ago

` (use-package circadian :ensure t :config (setq calendar-latitude 44.0) (setq calendar-longitude 25) (setq circadian-themes '((:sunrise . (funcall (nth (random 2) '(solarized-light spacemacs-light)))) (:sunset . (funcall (nth (random 2) '(solarized-dark spacemacs-darks)))))) (circadian-setup))

`

However, it doesn't work :-(

lemyx commented 1 year ago

The feature is awesome, if supported

BBoal commented 10 months ago

@eitazhou your binding of circadian-themes doesn't look good. Try this instead:

(setq circadian-themes `((:sunrise . ,(nth (random 2) '(solarized-light spacemacs-light))) (:sunset . ,(nth (random 2) '(solarized-dark spacemacs-darks)))))

Hope it helps!

guidoschmidt commented 5 months ago

@BBoal thanks for providing this simple solution. I'm currently working on supporting list of themes