-
-
Notifications
You must be signed in to change notification settings - Fork 204
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
Fringe and line numbers appear in opposite (dark vs light) colour #199
Comments
I've stumble across this problem myself as well. I eventually found out that the easiest way to play nice with emacs theming system, is to deactivate a specific theme and then load a specific theme. So if you were to start emacs with just solarized installed (and nothing else in your init.el) and wanted to create two functions to switch between light and dark it would be something like:
If you want a more universal disable-theme I use this:
Hopefully this helps a little, let me know if I missed something. |
Thank you @phoenixanimations, much appreciated. I ended up using a variant of the Solarized theme which avoids the issue (but causes others). It has been a while since I tried to rectify it in this version of the theme, so my mind is a bit off the topic, but I will try again with your fix and I will report back. Thanks! |
No problem I responded casually and didn't realize it was so long ago haha. Figure I would mention |
I really like your theme adaption, thank you for making it available. I use it with GNU Emacs 25.1.1 and with the GUI GNU Emacs.app, both on macOS 10.12 Sierra. I have added a couple of lines to automatically select the dark vs light variant depending on the current terminal colour (iTerm2), for which I am also using the Solarized scheme.
This code works well when calling emacs in the terminal, but when I call the GUI GNU Emacs.app (or other GUI emacs ports) the fringe and the line numbers appear in the wrong (opposite) colour. However, as soon as I toggle the colour scheme twice (via kbd ) everything is good. Also, if I evaluate
(load-theme 'solarized t)
it also fixes the issue. However, even though this is done in my.emacs
, even more than once, it does not work on its own from there. I tried putting it in after-init hooks, iterating through frames, all to no avail... Only that manual evaluation or toggling the colours fixes this issue.This is what it looks like:
and:
I would be grateful for any suggestions how to diagnose it further, or how to fix it. Thank you and regards from Ireland.
The text was updated successfully, but these errors were encountered: