unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Bijan Soleymani <bijan@psq.com>
Subject: Re: colors in emacs
Date: 30 Mar 2003 03:35:09 -0500	[thread overview]
Message-ID: <87he9lmev6.fsf@server.crasseux.com> (raw)
In-Reply-To: mailman.3842.1048993650.21513.help-gnu-emacs@gnu.org

"Evan Kirkland" <captain_wormhole@hotmail.com> 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

       reply	other threads:[~2003-03-30  8:35 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.3842.1048993650.21513.help-gnu-emacs@gnu.org>
2003-03-30  8:35 ` Bijan Soleymani [this message]
2003-03-30 17:12 ` colors in emacs Alex Schroeder
     [not found] <mailman.5432.1156240710.9609.help-gnu-emacs@gnu.org>
2006-08-22 12:43 ` Colors in Emacs CloudStrife
2006-08-22  9:58 Bourgneuf Francois
  -- strict thread matches above, loose matches on Subject: below --
2006-08-22  9:04 CloudStrife
2006-08-22 10:41 ` Peter Dyballa
     [not found] ` <mailman.5434.1156243310.9609.help-gnu-emacs@gnu.org>
2006-08-22 12:47   ` CloudStrife
2006-08-22 15:35     ` Peter Dyballa
2003-03-30  3:07 colors in emacs Evan Kirkland

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87he9lmev6.fsf@server.crasseux.com \
    --to=bijan@psq.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).