I've been successfully using lsp-mode and magit for a while with a light theme (leuven).

Today I was messing with something seemingly unrelated (company-mode and auto-complete settings in my ~/.emacs file) and all of a sudden popups in lsp-mode + company-mode appear as if in a dark theme: enter image description here

The same goes now in magit for the area where the cursor is: enter image description here

Needless to say, it's all unreadable now!

How can I get the light colours back?

My ~/.emacs contents are here, if it helps: https://pastebin.com/Hph4VXvH



The problem was this from my ~/.emacs file:

'(frame-background-mode 'dark)
'(hl-sexp-background-color "#1c1f26")

I'm not really sure how it got there, but setting frame-background-mode to nil (so that it will be set according to theme) and commenting the second line did the trick:

 '(frame-background-mode 'nil)
 ;; '(hl-sexp-background-color "#1c1f26")

Can you try editing the following entries in your ~/.emacs? For example, you can comment them out and check the effect.

'(pos-tip-background-color "#F3E7D3")
 '(pos-tip-foreground-color "#79716c")
 '(vc-annotate-background nil)
   '((20 . "#d54e53")
     (40 . "#e78c45")
     (60 . "#e7c547")
     (80 . "#b9ca4a")
     (100 . "#70c0b1")
     (120 . "#7aa6da")
     (140 . "#c397d8")
     (160 . "#d54e53")
     (180 . "#e78c45")
     (200 . "#e7c547")
     (220 . "#b9ca4a")
     (240 . "#70c0b1")
     (260 . "#7aa6da")
     (280 . "#c397d8")
     (300 . "#d54e53")
     (320 . "#e78c45")
     (340 . "#e7c547")
     (360 . "#b9ca4a")))
  • Thanks for the suggestion, but commenting those lines did not fix the issue, unfortunately. Anything else I could have a look at? I thought that part of my .emacs file was autogenerated by the custom theme... at least for sure I did not intentionally fill it out. Oct 9 at 11:54

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.