When I started using Emacs.app, I had the following in my .emacs
in order to use light fonts on a black background.

(add-to-list 'default-frame-alist '(foreground-color . "lightyellow"))
(add-to-list 'default-frame-alist '(cursor-color . "Yellow3"))
(add-to-list 'default-frame-alist
           '(background-color . "black"))
(set-face-background 'region "rgb:8/6/5")
(set-face-foreground 'region "lightyellow")
(set-face-foreground 'modeline "lightgoldenrod")
(set-face-background 'modeline "gray21")
(set-face-foreground 'highlight "lightyellow")
(set-face-background 'highlight "yellow4")
(set-face-foreground 'bold "white")
(set-face-foreground 'italic "tan1")

But sometimes I want to start up with a default white background,
because of background lighting, for example.

I do not know how to do it with current Emacs.app.  It does not help
to remove the above commands from my .emacs.

At this point, even Emacs.app/Contents/MacOS/Emacs -q still results
in black backgrounds to all frames.

I would like to have a simple toggle in my .emacs that would give me a
black background as above if I toggle things one way and would give
me a default white background if I toggle things the other way.

This is very easy in Carbon Emacs, by changing one line in my .emacs
in order to load a .el file with the above commands or not load that file.

Any advice?

 Gil
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Emacs-app-dev- mailing list
Emacs-app-dev-@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emacs-app-dev-

Reply via email to