help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Locating the default colors used by emacs


From: Peter Dyballa
Subject: Re: Locating the default colors used by emacs
Date: Wed, 4 Jul 2007 10:44:10 +0200


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)






reply via email to

[Prev in Thread] Current Thread [Next in Thread]