unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Peter Dyballa <Peter_Dyballa@Web.DE>
To: tigerleopard <tigerleopard1@lycos.com>
Cc: Help-gnu-emacs@gnu.org
Subject: Re: Locating the default colors used by emacs
Date: Wed, 4 Jul 2007 10:44:10 +0200	[thread overview]
Message-ID: <845582FA-ADFE-4E40-B29F-8735CB7F238E@Web.DE> (raw)
In-Reply-To: <11425562.post@talk.nabble.com>


Am 04.07.2007 um 08:31 schrieb tigerleopard:

> I am trying to find out where the color information from emacs is  
> located.

There are two sections in ~/.emacs: a free-form section and the one  
starting with "(custom-set-variables" and having as comment a warning  
not to edit this section. Usually this section is "maintained" by the  
customise interface in GNU Emacs. Look at menu entries "Options ->  
Customize Emacs!" Another way is to determine the characteristics of  
some character (C-u C-x = in GNU Emacs 22) and then choose (RET or  
[long-]click on the underlined hyperlink) the "face value" to enter  
the customisation interface. In GNU Emacs 21 you would need to invoke  
describe-text-properties.

In the free-form or Lisp section you can use for example:

         (setq initial-frame-alist '(
           (mouse-color           . "midnightblue")
           (foreground-color      . "grey20")
           (background-color      . "alice blue")
           (internal-border-width . 2)
           (line-spacing          . 1)
           (active-alpha          . 0.875)
           (inactive-alpha        . 0.75)
           (font . "-*-*-medium-r-normal--10-*-*-*-*-*-fontset- 
hiraginomin")
           (top . 25) (left . 650) (width . 91) (height . 50)))
         (setq default-frame-alist '(
           (border-color          . "#4e3831")
           (foreground-color      . "grey10")
           (background-color      . "ghost white")
           (vertical-scroll-bars  . left)
           (cursor-color          . "purple")
           (cursor-type           . box)
           (active-alpha          . 0.75)
           (inactive-alpha        . 0.875)
           (font . "-*-*-medium-r-normal--9-*-*-*-*-*-fontset- 
hiraginokaku")
           (top . 50) (left . 150) (width . 89) (height . 56)))


X11 users can use X Ressources (look into the GNU Emacs manual, i.e.  
C-h i m Emacs and then search for the "Command Line Options and  
Arguments" node), which are organised in files like ~/.Xdefaults or  
~/.Xressources (depends on the actual code in ~/.xinit or similiar  
files which set up the X11 environment).  ~/.Xdefaults or  
~/.Xressources can #include other files with set X application  
defaults. A lot "templates" exist in directories like /usr/X11R6/lib/ 
X11/app-defaults or /usr/X11R7/share/X11/app-defaults.

--
Greetings

   Pete

We are usually convinced more easily by reasons we have found  
ourselves than by those which have occurred to others.
                                           (Blaise Pascal)

      parent reply	other threads:[~2007-07-04  8:44 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
2007-07-06  5:46   ` tigerleopard
2007-07-04  8:44 ` Peter Dyballa [this message]

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=845582FA-ADFE-4E40-B29F-8735CB7F238E@Web.DE \
    --to=peter_dyballa@web.de \
    --cc=Help-gnu-emacs@gnu.org \
    --cc=tigerleopard1@lycos.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).