0

When I load emacs without any configuration I see a dark theme: enter image description here

There is no way for me to get back to the default theme. I tried the following:

  • M-x disable-theme: no theme is enabled
  • M-x customize-themes: I can set custom themes, but disabling them gets me to the weird default dark theme
  • M-x customize-variable RET frame-background-mode: setting to light/dark changes the colors slightly but no default emacs theme still, and I still have a dark background.
  • starting Emacs without .emacs configuration : no change
  • starting Emacs without .emacs.d/ : no change
  • removing completely Emacs with apt remove --purge emacs*, reinstalling and restarting it, without ~/.emacs, without ~/.emacs.d/: no change (??)

Are there configuration files/folders other than ~/.emacs and ~/emacs.d/?

EDIT: fixed using the help from this question: Emacs cursor color is different in daemon and non-daemon modes It was indeed the Xresources. xrdb -query -all didn't give any "Emacs*" stuff but calling xrdb -remove fixed the issue !

  • Can you try running emacs -Q? – DoMiNeLa10 Jan 14 at 9:07
  • The issue persists with -Q Edit : sorry, with -q the issue persists but with -Q, i get the default theme ! – michael.t Jan 14 at 9:33
  • It might be your xresources reddit.com/r/emacs/comments/9n5i4o/… – muffinmad Jan 14 at 10:27
  • In that case, you have a site lisp file that sets a theme. The solution to your problem probably boils down to just removing it. It seems that ~/.Xresoucres is ignored when you ignore the site lisp file, so you might want to look at it as well. – DoMiNeLa10 Jan 14 at 10:33
  • Same issue after deleting /usr/share/emacs/site-lisp. I dont have an ~/.Xresources file. – michael.t Jan 14 at 11:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.