solarized-emacs icon indicating copy to clipboard operation
solarized-emacs copied to clipboard

After `emacs -nw`, themes gets messed up on GUI Emacs

Open rieje opened this issue 4 years ago • 2 comments

When I load solarized-light theme in Emacs on the terminal (emacs -nw), it writes to custom.el:

(custom-set-variables
 '(custom-safe-themes
   '("c433c87bd4b64b8ba9890e8ed64597ea0f8eb0396f4c9a9e01bd20a04d15d358"  
"bf387180109d222aee6bb089db48ed38403a1e330c9ec69fe1f52460a8936b66" default)))
(custom-set-faces
 '(default ((((class color) (min-colors 89)) (:foreground "#657b83" :background "#fdf6e3")))))

Then when I launch GUI Emacs loading another theme, it messes colors of any themes on GUI Emacs.

Removing custom.el fixes GUI Emacs's theme colors.

To be clear, solarized-light theme works in Emacs on the terminal, but I can't use both Emacs on the terminal and GUI Emacs without removing custom.el.

I tried doom-solarized-light and it doesn't have this issue.

rieje avatar Nov 30 '20 22:11 rieje

Same here. The "default" entry gets added to custom.el and even messes up switching between solarized-dark and solarized-light. I can reproduce this with both dark and light versions of the theme.

hjudt avatar Apr 01 '21 19:04 hjudt

Commenting out the line containing default https://github.com/bbatsov/solarized-emacs/blob/4d4b004460271e310ca45606d24a60e95ca3151d/solarized-faces.el#L38 in solarized-faces.el seems to fix it.

hjudt avatar Apr 01 '21 20:04 hjudt