From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Bijan Soleymani Newsgroups: gmane.emacs.help Subject: Re: colors in emacs Date: 30 Mar 2003 03:35:09 -0500 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87he9lmev6.fsf@server.crasseux.com> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1049012920 30583 80.91.224.249 (30 Mar 2003 08:28:40 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 30 Mar 2003 08:28:40 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Sun Mar 30 10:28:38 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18zYBC-0007x2-00 for ; Sun, 30 Mar 2003 10:28:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18zY8E-0003LF-02 for gnu-help-gnu-emacs@m.gmane.org; Sun, 30 Mar 2003 03:25:34 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!cyclone.bc.net!snoopy.risq.qc.ca!wesley.videotron.net!weber.videotron.net.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 77 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-NNTP-Posting-Host: 24.201.123.149 Original-X-Complaints-To: abuse@videotron.ca Original-X-Trace: weber.videotron.net 1049012701 24.201.123.149 (Sun, 30 Mar 2003 03:25:01 EST) Original-NNTP-Posting-Date: Sun, 30 Mar 2003 03:25:01 EST Original-Xref: shelby.stanford.edu gnu.emacs.help:111492 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:7992 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:7992 "Evan Kirkland" writes: > Hello, > > I was wondering where I can configure emacs so that I can have a > different color background, other than white? This is from the emacs manual under the section about command-line arguments, in the node about window colors: " Window Color Options ==================== On a color display, you can specify which color to use for various parts of the Emacs display. To find out what colors are available on your system, type `M-x list-colors-display', or press `C-Mouse-2' and select `Display Colors' from the pop-up menu. If you do not specify colors, on windowed displays the default for the background is white and the default for all other colors is black. On a monochrome display, the foreground is black, the background is white, and the border is gray if the display supports that. On terminals, the background is usually black and the foreground is white. Here is a list of the command-line options for specifying colors: `-fg COLOR' `--foreground-color=COLOR' Specify the foreground color. COLOR should be a standard color name, or a numeric specification of the color's red, green, and blue components as in `#4682B4' or `RGB:46/82/B4'. `-bg COLOR' `--background-color=COLOR' Specify the background color. `-bd COLOR' `--border-color=COLOR' Specify the color of the border of the X window. `-cr COLOR' `--cursor-color=COLOR' Specify the color of the Emacs cursor which indicates where point is. `-ms COLOR' `--mouse-color=COLOR' Specify the color for the mouse cursor when the mouse is in the Emacs window. `-r' `-rv' `--reverse-video' Reverse video--swap the foreground and background colors. For example, to use a coral mouse cursor and a slate blue text cursor, enter: emacs -ms coral -cr 'slate blue' & You can reverse the foreground and background colors through the `-rv' option or with the X resource `reverseVideo'. The `-fg', `-bg', and `-rv' options function on text-only terminals as well as on window systems. " If you are using emacs on GNU/Linux or any other unix-like system then you can set this permanently in your .Xresources file. This is also described in the emacs manual: In the same section about command-line arguments in the node about X resources. Hope that helps, Bijan