unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Seweryn Kokot <s.kokot@po.opole.pl>
To: help-gnu-emacs@gnu.org
Subject: Re: Locating the default colors used by emacs
Date: Wed, 04 Jul 2007 09:24:12 +0200	[thread overview]
Message-ID: <87d4z8r5r7.fsf@poczta.po.opole.pl> (raw)
In-Reply-To: 11425562.post@talk.nabble.com

tigerleopard <tigerleopard1@lycos.com> writes:

> I am trying to find out where the color information from emacs is located. I
> looked into the .emacs
> file from my user and the root, but both are empty. Someone told me to look
> into the Xdefault, but my distribution doesn't have it. I know that I can
> put the colors settings in the .emacs file, but the thing is that I don't
> know the color that I want. What I want to do, is to copy the foreground and
> background colors being used by root to my user.  
> So, I want to know if there is a specific file that store some standard
> colors in the case of the .emacs files being empty, or if this is
> distribution dependent.
> Or, if there is a command that shows the colors being used. 
> And one thing that I have curiosity about, is why when I give a su to obtain
> administrative privileges, emacs starts with the same colors than my user,
> unlike when I login from the beginning as root.
> Thanks in advance for all the help.

just create .emacs file and put something like this

	  (set-background-color "DarkSlateGray")
	  (set-foreground-color "Wheat")
	  (set-face-background 'modeline "lightgoldenrod2")
	  (set-face-foreground 'modeline "DarkSlateGray")
	  (set-cursor-color "Orchid")
	  (set-face-foreground 'font-lock-comment-face "Gray")
	  (set-face-foreground 'font-lock-string-face "Gold3")
	  (set-face-foreground 'font-lock-function-name-face "LightBlue")
	  (set-face-foreground 'font-lock-keyword-face "cyan1")
	  (set-face-foreground 'font-lock-type-face "Violet")
	  (set-face-foreground 'font-lock-builtin-face "Cyan")
	  (set-face-foreground 'font-lock-variable-name-face "Gold")
	  (set-face-foreground 'font-lock-constant-face "Magenta")
	  (set-face-foreground 'scroll-bar "Wheat")
	  (set-face-background 'scroll-bar "lightgoldenrod2")
	  (set-face-foreground 'tool-bar "Wheat")
	  (set-face-background 'tool-bar "lightgoldenrod2")
	  (set-face-foreground 'font-lock-builtin-face "Cyan")

the list of predefined colors is shown typing M-x list-colors-display

and you can also check and change the colors of things by 
M-x customize-face 

regards,
Seweryn

  reply	other threads:[~2007-07-04  7:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-04  6:31 Locating the default colors used by emacs tigerleopard
2007-07-04  7:24 ` Seweryn Kokot [this message]
2007-07-06  5:46   ` tigerleopard
2007-07-04  8:44 ` Peter Dyballa

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=87d4z8r5r7.fsf@poczta.po.opole.pl \
    --to=s.kokot@po.opole.pl \
    --cc=help-gnu-emacs@gnu.org \
    /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).