From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Seweryn Kokot Newsgroups: gmane.emacs.help Subject: Re: Locating the default colors used by emacs Date: Wed, 04 Jul 2007 09:24:12 +0200 Message-ID: <87d4z8r5r7.fsf@poczta.po.opole.pl> References: <11425562.post@talk.nabble.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1183533648 6891 80.91.229.12 (4 Jul 2007 07:20:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 4 Jul 2007 07:20:48 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 04 09:20:44 2007 connect(): Connection refused Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1I5zAJ-0002hM-5H for geh-help-gnu-emacs@m.gmane.org; Wed, 04 Jul 2007 09:20:43 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I5zAI-0004Kr-D8 for geh-help-gnu-emacs@m.gmane.org; Wed, 04 Jul 2007 03:20:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I5zA0-0004KI-3a for help-gnu-emacs@gnu.org; Wed, 04 Jul 2007 03:20:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I5z9y-0004Jk-Kw for help-gnu-emacs@gnu.org; Wed, 04 Jul 2007 03:20:23 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I5z9y-0004Jh-IT for help-gnu-emacs@gnu.org; Wed, 04 Jul 2007 03:20:22 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I5z9x-00042E-91 for help-gnu-emacs@gnu.org; Wed, 04 Jul 2007 03:20:21 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1I5z9p-0006ca-Q5 for help-gnu-emacs@gnu.org; Wed, 04 Jul 2007 09:20:14 +0200 Original-Received: from nat-warynskiego.po.opole.pl ([217.173.199.132]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 04 Jul 2007 09:20:13 +0200 Original-Received: from s.kokot by nat-warynskiego.po.opole.pl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 04 Jul 2007 09:20:13 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 46 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: nat-warynskiego.po.opole.pl X-PGP-FP: BF2E 7101 B6C4 CE71 527E 1A06 9B17 0C43 20EC 5AC1 X-PGP: 20EC5AC1 X-Operating-System: Debian GNU/Linux X-Homepage: http://www.skokot.po.opole.pl User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) Cancel-Lock: sha1:kih/eBqTHuarAZFVQ8+1nEKfJCU= X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:45460 Archived-At: tigerleopard 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