Closed Krisselack closed 2 years ago
@Krisselack thanks for the request and sorry for beeing that late, I haven't worked on circadian.el for quite a while. I'm trying to dig in again more often.
Note for myself, check: Emacs Desktop-Save-Mode
This is not circadian's fault. This usually is caused by stale locks (or two emacs open using the same desktop file.) You have two workarounds:
(use-package circadian
:config
(setq calendar-latitude YF/latitude)
(setq calendar-longitude YF/longitude)
(setq circadian-themes '((:sunrise . hydandata-light)
(:sunset . sanityinc-tomorrow-eighties)))
(circadian-setup)
:hook (desktop-after-read . circadian-setup )
)
2. Make sure your emacs don't use stale desktop locks, or similar as mentioned in https://www.emacswiki.org/emacs/Desktop
thank you, @utoku, I included both your hook and disabled stale lock by including sylvains code snipped from your shared url into my emacs-config. issue seems solved so far :-).
I use circadian happily and also desktop-save-mode. When I shut down emacs in the evening and open it up in the morning, the dark theme is saved (and vice versa with the light theme). Is there a way to reload the correct theme with desktop-save-mode? Thanks.
config: