Home » Questions » Computers [ Ask a new question ]

Emacs background is grey after upgrading to Snow Leopard

Emacs background is grey after upgrading to Snow Leopard

I use Emacs within Terminal on my MacBook. I have configured Emacs to use the color-theme package. I prefer the "whateveryouwant" theme, which has a white background. Incidentally, I also have a white background in my Terminal sessions.

Asked by: Guest | Views: 40
Total answers/comments: 2
Guest [Entry]

"Adjusting the background value of the default face from ""white"" to ""gray00"" fix the issue.

You could adjust the color-theme-library.el, but I prefer to suggest to adjust your .emacs.

(add-to-list 'load-path ""~/.emacs.d/color-theme/"")
(require 'color-theme)
(color-theme-initialize)
(color-theme-whateveryouwant)
;
; Force background color to white for Snow Leopard
; TODO: revisit this fix when the reason why the background
; was gray is identified.
;
(custom-set-faces
'(default ((t (:stipple nil :background ""gray00"" :foreground ""black""
:inverse-video nil :box nil :strike-through nil :overline nil :underline nil
:slant normal :weight normal :height 1 :width normal :family ""default"")))))

You could achieve a simular result by using M-x customize > Faces > Basic Faces > Default Face and setting Background to ""gray00""."
Guest [Entry]

"Emacs is looking for

themes/color-theme-example.elc

but your theme example was written as

/Users/gharfst/.emacs.d/color-theme/color-theme.elc

Try this in your init.el:

(setq color-theme-directory ""/Users/gharfst/.emacs.d/color-theme"")"