-
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Theme not fully loaded on switch #9
Comments
Hey basille, glad you like the package 👍 Which Emacs version and which package-version of circadian are you using, so I can try to work out what's going on. |
Sorry I should have started with this:
|
Thanks for the information - I will try to check on the issue as soon as possible 🙂 |
@basille How do you install the themes, that you want to be loaded by circadian? I could reproduce the behaviour, you are experiencing only when installing themes with ;; Try to add `:defer` keyword, if you're using use-package
(use-package apropospriate-theme :ensure :defer)
(use-package nord-theme :ensure :defer)
(use-package circadian
:ensure
:init
:config
(setq calendar-latitude 26.084534)
(setq calendar-longitude -80.238454)
(setq circadian-themes '((:sunrise . apropospriate-light)
(:sunset . nord)))
(circadian-setup)) Let me know, if that solved your issue, too - otherwise I'll need to have a deeper look on what is going on in detail 🕵️ |
Thanks @guidoschmidt to look into it. As a matter of fact, I do not use |
@basille Do you still have this issue? I just recently found out, that Emacs is loading a theme by default, when you do Additionally, did you check your timezone configuration, maybe circadian has issues fetching the correct sunrise/sunset time? |
@guidoschmidt , thanks for your follow-up! As a matter of fact, I still have the same problem, and I regularly close and reopen Emacs when theme switches… You can find my complete .emacs here, but essentially, theme configuration is pretty much the first thing that happens… and coordinates are configured through |
@basille I just recently found some time to check your config - sorry for the long time period 😦 I cloned your (setq circadian-themes '((:sunrise . apropospriate-light)
(:sunset . nord)))
;; This resets the custom-face-attributes list and will hopefully clear all customizations
;; that the nord-theme has set.
(add-hook 'circadian-before-load-theme-hook
#'(lambda (theme)
(setq custom-face-attributes '())))
(circadian-setup) Could you try if that resolves your issue? 🤔 |
@guidoschmidt, I have modified my setup in the meanwhile: the mode-line was actually using powerline, which I removed entirely due to various issues (mostly readability, but also this issue), and I need to do more testing about it. Unfortunately, themes only switch twice a day, and I don't necessarily have Emacs open at this moment! I'll definitely report back (and try the trick you just posted if need be). Thanks! |
Hi @guidoschmidt, I tried the additional setup you suggested, but I still have the original issue (at the beginning of this thread), i.e. R chunks in Polymode not switching to the new mode together with the rest of the interface. |
Thanks @guidoschmidt for checking in, and sorry for the late answer! Unfortunately, I still have the same issues when switching to Nord theme — it may just have to do with this theme, to be honest I did not try other themes, and kind of got used to closing and restarting Emacs altogether… 🤦♂️ Would you like me to check with another night theme? (any suggestion for a good one?) |
All fine - I haven't worked on circadian for quite a while myself. I'm using |
Thanks for the suggestion. Nice themes! |
I just played around with another extension (Auto-Dark for Emacs), which shows the exact same problem on switching. Seems to reinforce the idea that the bug might actually be on the |
@basille sorry this is not working for you for such a long time now. You could try a fresh Emacs config with almost nothing but your desired themes and circadian.el installed, to see if the issue still remains? |
Thanks for this great package! And for the theme suggestions, I love them!
I'm using a very similar setup as the one from the README:
The switch as sunrise/sunset does occur, but leaves me with a theme not fully loaded. Here is a screenshot of a session using Polymode on a RMarkdown file (so essentially mixing Markdown and ESS mode), after a sunset switch to Nord theme:
Simply closing and restarting Emacs shows what I should have:
What's missing is the correct background in the ESS chunk. Not too sure where to starts from here…
The text was updated successfully, but these errors were encountered: