annotate man/xresources.texi @ 82621:8bdedd5fc7a2

Move refcards from etc/ to etc/refcards/
author Glenn Morris <rgm@gnu.org>
date Wed, 22 Aug 2007 07:17:41 +0000
parents 4805684e0b00
children 02b9a9aa5b0c e6fdae9180d4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
40523
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1 @c This is part of the Emacs manual.
64890
3723093a21fd Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64466
diff changeset
2 @c Copyright (C) 1987, 1993, 1994, 1995, 1997, 2001, 2002, 2003,
75348
3d45362f1d38 Add 2007 to copyright years.
Glenn Morris <rgm@gnu.org>
parents: 75052
diff changeset
3 @c 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
40523
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
4 @c See file emacs.texi for copying conditions.
58789
c8e9116cff8b Rename Command Line to Emacs Invocation.
Richard M. Stallman <rms@gnu.org>
parents: 58761
diff changeset
5 @node X Resources, Antinews, Emacs Invocation, Top
41368
6a9bede30a62 Move some of the nodes back to cmdargs.texi--they actually describe options.
Richard M. Stallman <rms@gnu.org>
parents: 40765
diff changeset
6 @appendix X Options and Resources
40523
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
7
41368
6a9bede30a62 Move some of the nodes back to cmdargs.texi--they actually describe options.
Richard M. Stallman <rms@gnu.org>
parents: 40765
diff changeset
8 You can customize some X-related aspects of Emacs behavior using X
45934
7bcd2de62c44 Add link to new MS-Windows Registry section in cmdargs.texi
Jason Rumney <jasonr@gnu.org>
parents: 44326
diff changeset
9 resources, as is usual for programs that use X. On MS-Windows, you
7bcd2de62c44 Add link to new MS-Windows Registry section in cmdargs.texi
Jason Rumney <jasonr@gnu.org>
parents: 44326
diff changeset
10 can customize some of the same aspects using the system registry.
74044
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
11 @xref{MS-Windows Registry}. Likewise, Emacs on MacOS Carbon emulates X
68846
c51312efd7b3 (X Resources): Mention Mac OS port.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 68703
diff changeset
12 resources using the Preferences system. @xref{Mac Environment Variables}.
60957
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
13
74997
f2f6a4b1bf80 (Table of Resources): Mention grow-only value for auto-resize-tool-bars.
Kim F. Storm <storm@cua.dk>
parents: 74044
diff changeset
14 When Emacs is built using an ``X toolkit'', such as Lucid or
74044
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
15 LessTif, you need to use X resources to customize the appearance of
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
16 the widgets, including the menu-bar, scroll-bar, and dialog boxes.
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
17 This is because the libraries that implement these don't provide for
60957
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
18 customization through Emacs. GTK+ widgets use a separate system of
74044
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
19 @ifnottex
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
20 ``GTK resources'', which we will also describe.
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
21 @end ifnottex
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
22 @iftex
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
23 ``GTK resources.'' In this chapter we describe the most commonly used
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
24 resource specifications. For full documentation, see the online
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
25 manual.
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
26
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
27 @c Add xref for LessTif/Motif menu resources.
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
28 @end iftex
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
29
40591
a8c2103fca6f Add menu of submodes.
Richard M. Stallman <rms@gnu.org>
parents: 40523
diff changeset
30
a8c2103fca6f Add menu of submodes.
Richard M. Stallman <rms@gnu.org>
parents: 40523
diff changeset
31 @menu
41368
6a9bede30a62 Move some of the nodes back to cmdargs.texi--they actually describe options.
Richard M. Stallman <rms@gnu.org>
parents: 40765
diff changeset
32 * Resources:: Using X resources with Emacs (in general).
6a9bede30a62 Move some of the nodes back to cmdargs.texi--they actually describe options.
Richard M. Stallman <rms@gnu.org>
parents: 40765
diff changeset
33 * Table of Resources:: Table of specific X resources that affect Emacs.
6a9bede30a62 Move some of the nodes back to cmdargs.texi--they actually describe options.
Richard M. Stallman <rms@gnu.org>
parents: 40765
diff changeset
34 * Face Resources:: X resources for customizing faces.
40591
a8c2103fca6f Add menu of submodes.
Richard M. Stallman <rms@gnu.org>
parents: 40523
diff changeset
35 * Lucid Resources:: X resources for Lucid menus.
a8c2103fca6f Add menu of submodes.
Richard M. Stallman <rms@gnu.org>
parents: 40523
diff changeset
36 * LessTif Resources:: X resources for LessTif and Motif menus.
49322
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
37 * GTK resources:: Resources for GTK widgets.
40591
a8c2103fca6f Add menu of submodes.
Richard M. Stallman <rms@gnu.org>
parents: 40523
diff changeset
38 @end menu
a8c2103fca6f Add menu of submodes.
Richard M. Stallman <rms@gnu.org>
parents: 40523
diff changeset
39
41373
11a1b4e2b45a Fix node names and cross-references.
Eli Zaretskii <eliz@gnu.org>
parents: 41368
diff changeset
40 @node Resources
40523
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
41 @appendixsec X Resources
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
42 @cindex resources
49061
bc9ef65d3429 Move toolBar table entry.
Richard M. Stallman <rms@gnu.org>
parents: 48045
diff changeset
43 @cindex X resources
bc9ef65d3429 Move toolBar table entry.
Richard M. Stallman <rms@gnu.org>
parents: 48045
diff changeset
44 @cindex @file{~/.Xdefaults} file
bc9ef65d3429 Move toolBar table entry.
Richard M. Stallman <rms@gnu.org>
parents: 48045
diff changeset
45 @cindex @file{~/.Xresources} file
40523
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
46
42886
0aa2696d5de7 (Table of Resources): Under menuBar, add xrefs to the nodes
Richard M. Stallman <rms@gnu.org>
parents: 42715
diff changeset
47 Programs running under the X Window System organize their user
0aa2696d5de7 (Table of Resources): Under menuBar, add xrefs to the nodes
Richard M. Stallman <rms@gnu.org>
parents: 42715
diff changeset
48 options under a hierarchy of classes and resources. You can specify
0aa2696d5de7 (Table of Resources): Under menuBar, add xrefs to the nodes
Richard M. Stallman <rms@gnu.org>
parents: 42715
diff changeset
49 default values for these options in your X resources file, usually
48045
b18665979968 (Resources): Mention .Xresources.
Dave Love <fx@gnu.org>
parents: 45934
diff changeset
50 named @file{~/.Xdefaults} or @file{~/.Xresources}.
b18665979968 (Resources): Mention .Xresources.
Dave Love <fx@gnu.org>
parents: 45934
diff changeset
51 If changes in @file{~/.Xdefaults} do not
42886
0aa2696d5de7 (Table of Resources): Under menuBar, add xrefs to the nodes
Richard M. Stallman <rms@gnu.org>
parents: 42715
diff changeset
52 take effect, it is because your X server stores its own list of
0aa2696d5de7 (Table of Resources): Under menuBar, add xrefs to the nodes
Richard M. Stallman <rms@gnu.org>
parents: 42715
diff changeset
53 resources; to update them, use the shell command @command{xrdb}---for
0aa2696d5de7 (Table of Resources): Under menuBar, add xrefs to the nodes
Richard M. Stallman <rms@gnu.org>
parents: 42715
diff changeset
54 instance, @samp{xrdb ~/.Xdefaults}.
40523
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
55
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
56 Each line in the file specifies a value for one option or for a
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
57 collection of related options, for one program or for several programs
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
58 (optionally even for all programs).
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
59
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
60 @cindex Registry (MS-Windows)
77129
4805684e0b00 wording for 8.5x11
Karl Berry <karl@gnu.org>
parents: 75348
diff changeset
61 MS-Windows systems do not support @file{~/.Xdefaults} files, so
4805684e0b00 wording for 8.5x11
Karl Berry <karl@gnu.org>
parents: 75348
diff changeset
62 instead Emacs compiled for Windows looks for X resources in the
4805684e0b00 wording for 8.5x11
Karl Berry <karl@gnu.org>
parents: 75348
diff changeset
63 Windows Registry, first under the key
4805684e0b00 wording for 8.5x11
Karl Berry <karl@gnu.org>
parents: 75348
diff changeset
64 @samp{HKEY_CURRENT_USER\SOFTWARE\GNU\Emacs} and then under the key
4805684e0b00 wording for 8.5x11
Karl Berry <karl@gnu.org>
parents: 75348
diff changeset
65 @samp{HKEY_LOCAL_MACHINE\SOFTWARE\GNU\Emacs}. The menu and scroll
4805684e0b00 wording for 8.5x11
Karl Berry <karl@gnu.org>
parents: 75348
diff changeset
66 bars are native widgets on MS-Windows, so they are only customizable
4805684e0b00 wording for 8.5x11
Karl Berry <karl@gnu.org>
parents: 75348
diff changeset
67 via the system-wide settings in the Display Control Panel. You can
4805684e0b00 wording for 8.5x11
Karl Berry <karl@gnu.org>
parents: 75348
diff changeset
68 also set resources using the @samp{-xrm} command line option (see
4805684e0b00 wording for 8.5x11
Karl Berry <karl@gnu.org>
parents: 75348
diff changeset
69 below.)
40523
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
70
74044
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
71 @iftex
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
72 Applications such as Emacs look for resources with specific names
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
73 and their particular meanings. Case distinctions are significant in
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
74 these names. Each resource specification in @file{~/.Xdefaults}
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
75 states the name of the program and the name of the resource. For
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
76 Emacs, the program name is @samp{Emacs}. It looks like this:
74997
f2f6a4b1bf80 (Table of Resources): Mention grow-only value for auto-resize-tool-bars.
Kim F. Storm <storm@cua.dk>
parents: 74044
diff changeset
77
74044
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
78 @example
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
79 Emacs.borderWidth: 2
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
80 @end example
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
81 @end iftex
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
82 @ifnottex
40523
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
83 Programs define named resources with particular meanings. They also
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
84 define how to group resources into named classes. For instance, in
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
85 Emacs, the @samp{internalBorder} resource controls the width of the
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
86 internal border, and the @samp{borderWidth} resource controls the width
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
87 of the external border. Both of these resources are part of the
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
88 @samp{BorderWidth} class. Case distinctions are significant in these
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
89 names.
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
90
60957
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
91 Every resource definition is associated with a specific program
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
92 name---the name of the executable file that you ran. For Emacs, that
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
93 is normally @samp{emacs}. To specify a definition for all instances
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
94 of Emacs, regardless of their names, use @samp{Emacs}.
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
95
40523
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
96 In @file{~/.Xdefaults}, you can specify a value for a single resource
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
97 on one line, like this:
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
98
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
99 @example
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
100 emacs.borderWidth: 2
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
101 @end example
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
102
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
103 @noindent
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
104 Or you can use a class name to specify the same value for all resources
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
105 in that class. Here's an example:
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
106
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
107 @example
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
108 emacs.BorderWidth: 2
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
109 @end example
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
110
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
111 If you specify a value for a class, it becomes the default for all
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
112 resources in that class. You can specify values for individual
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
113 resources as well; these override the class value, for those particular
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
114 resources. Thus, this example specifies 2 as the default width for all
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
115 borders, but overrides this value with 4 for the external border:
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
116
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
117 @example
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
118 emacs.BorderWidth: 2
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
119 emacs.borderWidth: 4
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
120 @end example
74044
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
121 @end ifnottex
40523
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
122
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
123 The order in which the lines appear in the file does not matter.
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
124 Also, command-line options always override the X resources file.
74044
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
125
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
126 @ifnottex
60957
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
127 Here is a list of X command-line options and their corresponding
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
128 resource names.
40523
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
129
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
130 @table @samp
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
131 @item -name @var{name}
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
132 @opindex --name
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
133 @itemx --name=@var{name}
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
134 @cindex resource name, command-line argument
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
135 Use @var{name} as the resource name (and the title) for the initial
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
136 Emacs frame. This option does not affect subsequent frames, but Lisp
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
137 programs can specify frame names when they create frames.
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
138
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
139 If you don't specify this option, the default is to use the Emacs
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
140 executable's name as the resource name.
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
141
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
142 @item -xrm @var{resource-values}
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
143 @opindex --xrm
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
144 @itemx --xrm=@var{resource-values}
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
145 @cindex resource values, command-line argument
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
146 Specify X resource values for this Emacs job (see below).
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
147 @end table
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
148
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
149 For consistency, @samp{-name} also specifies the name to use for
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
150 other resource values that do not belong to any particular frame.
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
151
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
152 The resources that name Emacs invocations also belong to a class; its
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
153 name is @samp{Emacs}. If you write @samp{Emacs} instead of
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
154 @samp{emacs}, the resource applies to all frames in all Emacs jobs,
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
155 regardless of frame titles and regardless of the name of the executable
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
156 file. Here is an example:
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
157
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
158 @example
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
159 Emacs.BorderWidth: 2
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
160 Emacs.borderWidth: 4
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
161 @end example
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
162
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
163 You can specify a string of additional resource values for Emacs to
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
164 use with the command line option @samp{-xrm @var{resources}}. The text
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
165 @var{resources} should have the same format that you would use inside a file
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
166 of X resources. To include multiple resource specifications in
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
167 @var{resources}, put a newline between them, just as you would in a file.
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
168 You can also use @samp{#include "@var{filename}"} to include a file full
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
169 of resource specifications. Resource values specified with @samp{-xrm}
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
170 take precedence over all other resource specifications.
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
171
41368
6a9bede30a62 Move some of the nodes back to cmdargs.texi--they actually describe options.
Richard M. Stallman <rms@gnu.org>
parents: 40765
diff changeset
172 One way to experiment with the effect of different resource settings
6a9bede30a62 Move some of the nodes back to cmdargs.texi--they actually describe options.
Richard M. Stallman <rms@gnu.org>
parents: 40765
diff changeset
173 is to use the @code{editres} program. Select @samp{Get Tree} from the
74044
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
174 @end ifnottex
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
175 @iftex
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
176 You can experiment with the effect of different resource settings
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
177 with the @code{editres} program. Select @samp{Get Tree} from the
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
178 @end iftex
41368
6a9bede30a62 Move some of the nodes back to cmdargs.texi--they actually describe options.
Richard M. Stallman <rms@gnu.org>
parents: 40765
diff changeset
179 @samp{Commands} menu, then click on an Emacs frame. This will display
6a9bede30a62 Move some of the nodes back to cmdargs.texi--they actually describe options.
Richard M. Stallman <rms@gnu.org>
parents: 40765
diff changeset
180 a tree showing the structure of X toolkit widgets used in an Emacs
6a9bede30a62 Move some of the nodes back to cmdargs.texi--they actually describe options.
Richard M. Stallman <rms@gnu.org>
parents: 40765
diff changeset
181 frame. Select one of them, such as @samp{menubar}, then select
6a9bede30a62 Move some of the nodes back to cmdargs.texi--they actually describe options.
Richard M. Stallman <rms@gnu.org>
parents: 40765
diff changeset
182 @samp{Show Resource Box} from the @samp{Commands} menu. This displays
74044
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
183 a list of all the meaningful X resources for that widget, and allows
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
184 you to edit them. Changes take effect when you click on the
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
185 @samp{Apply} button. (See the @code{editres} man page for more
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
186 details.)
41368
6a9bede30a62 Move some of the nodes back to cmdargs.texi--they actually describe options.
Richard M. Stallman <rms@gnu.org>
parents: 40765
diff changeset
187
6a9bede30a62 Move some of the nodes back to cmdargs.texi--they actually describe options.
Richard M. Stallman <rms@gnu.org>
parents: 40765
diff changeset
188 @node Table of Resources
6a9bede30a62 Move some of the nodes back to cmdargs.texi--they actually describe options.
Richard M. Stallman <rms@gnu.org>
parents: 40765
diff changeset
189 @appendixsec Table of X Resources for Emacs
6a9bede30a62 Move some of the nodes back to cmdargs.texi--they actually describe options.
Richard M. Stallman <rms@gnu.org>
parents: 40765
diff changeset
190
6a9bede30a62 Move some of the nodes back to cmdargs.texi--they actually describe options.
Richard M. Stallman <rms@gnu.org>
parents: 40765
diff changeset
191 This table lists the resource names that designate options for
42886
0aa2696d5de7 (Table of Resources): Under menuBar, add xrefs to the nodes
Richard M. Stallman <rms@gnu.org>
parents: 42715
diff changeset
192 Emacs, not counting those for the appearance of the menu bar, each
0aa2696d5de7 (Table of Resources): Under menuBar, add xrefs to the nodes
Richard M. Stallman <rms@gnu.org>
parents: 42715
diff changeset
193 with the class that it belongs to:
40523
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
194
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
195 @table @asis
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
196 @item @code{background} (class @code{Background})
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
197 Background color name.
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
198
74044
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
199 @ifnottex
40523
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
200 @item @code{bitmapIcon} (class @code{BitmapIcon})
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
201 Use a bitmap icon (a picture of a gnu) if @samp{on}, let the window
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
202 manager choose an icon if @samp{off}.
74044
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
203 @end ifnottex
40523
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
204
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
205 @item @code{borderColor} (class @code{BorderColor})
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
206 Color name for the external border.
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
207
74044
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
208 @ifnottex
40523
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
209 @item @code{borderWidth} (class @code{BorderWidth})
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
210 Width in pixels of the external border.
74044
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
211 @end ifnottex
40523
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
212
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
213 @item @code{cursorColor} (class @code{Foreground})
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
214 Color name for text cursor (point).
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
215
74044
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
216 @ifnottex
61505
c8cf56d85000 Added new X reosurce, cursorBlink.
Jan Djärv <jan.h.d@swipnet.se>
parents: 61426
diff changeset
217 @item @code{cursorBlink} (class @code{CursorBlink})
c8cf56d85000 Added new X reosurce, cursorBlink.
Jan Djärv <jan.h.d@swipnet.se>
parents: 61426
diff changeset
218 Specifies whether to make the cursor blink. The default is @samp{on}. Use
c8cf56d85000 Added new X reosurce, cursorBlink.
Jan Djärv <jan.h.d@swipnet.se>
parents: 61426
diff changeset
219 @samp{off} or @samp{false} to turn cursor blinking off.
74044
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
220 @end ifnottex
61505
c8cf56d85000 Added new X reosurce, cursorBlink.
Jan Djärv <jan.h.d@swipnet.se>
parents: 61426
diff changeset
221
40523
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
222 @item @code{font} (class @code{Font})
74044
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
223 Font name (or fontset name, @pxref{Fontsets}) for @code{default} font.
40523
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
224
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
225 @item @code{foreground} (class @code{Foreground})
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
226 Color name for text.
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
227
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
228 @item @code{geometry} (class @code{Geometry})
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
229 Window size and position. Be careful not to specify this resource as
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
230 @samp{emacs*geometry}, because that may affect individual menus as well
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
231 as the Emacs frame itself.
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
232
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
233 If this resource specifies a position, that position applies only to the
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
234 initial Emacs frame (or, in the case of a resource for a specific frame
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
235 name, only that frame). However, the size, if specified here, applies to
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
236 all frames.
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
237
74044
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
238 @ifnottex
42714
59c4dd0ca0e8 (Table of Resources): Document the new fullscreen resource.
Eli Zaretskii <eliz@gnu.org>
parents: 41373
diff changeset
239 @item @code{fullscreen} (class @code{Fullscreen})
42715
fcbd88e4e54e (Table of Resources): Fix the markup and the wording of the last change.
Eli Zaretskii <eliz@gnu.org>
parents: 42714
diff changeset
240 The desired fullscreen size. The value can be one of @code{fullboth},
fcbd88e4e54e (Table of Resources): Fix the markup and the wording of the last change.
Eli Zaretskii <eliz@gnu.org>
parents: 42714
diff changeset
241 @code{fullwidth} or @code{fullheight}, which correspond to
fcbd88e4e54e (Table of Resources): Fix the markup and the wording of the last change.
Eli Zaretskii <eliz@gnu.org>
parents: 42714
diff changeset
242 the command-line options @samp{-fs}, @samp{-fw}, and @samp{-fh}
fcbd88e4e54e (Table of Resources): Fix the markup and the wording of the last change.
Eli Zaretskii <eliz@gnu.org>
parents: 42714
diff changeset
243 (@pxref{Window Size X}).
42714
59c4dd0ca0e8 (Table of Resources): Document the new fullscreen resource.
Eli Zaretskii <eliz@gnu.org>
parents: 41373
diff changeset
244
74044
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
245 Note that this applies to the initial frame only.
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
246 @end ifnottex
42714
59c4dd0ca0e8 (Table of Resources): Document the new fullscreen resource.
Eli Zaretskii <eliz@gnu.org>
parents: 41373
diff changeset
247
40523
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
248 @item @code{iconName} (class @code{Title})
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
249 Name to display in the icon.
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
250
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
251 @item @code{internalBorder} (class @code{BorderWidth})
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
252 Width in pixels of the internal border.
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
253
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
254 @item @code{lineSpacing} (class @code{LineSpacing})
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
255 @cindex line spacing
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
256 @cindex leading
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
257 Additional space (@dfn{leading}) between lines, in pixels.
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
258
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
259 @item @code{menuBar} (class @code{MenuBar})
51131
0314017693af useXIM. index entries.
Dave Love <fx@gnu.org>
parents: 49827
diff changeset
260 @cindex menu bar
74044
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
261 Give frames menu bars if @samp{on}; don't have menu bars if @samp{off}.
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
262 @ifnottex
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
263 @xref{Lucid Resources}, and @ref{LessTif Resources},
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
264 @end ifnottex
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
265 @iftex
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
266 @xref{Lucid Resources},
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
267 @end iftex
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
268 for how to control the appearance of the menu bar if you have one.
40523
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
269
74044
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
270 @ifnottex
40523
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
271 @item @code{minibuffer} (class @code{Minibuffer})
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
272 If @samp{none}, don't make a minibuffer in this frame.
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
273 It will use a separate minibuffer frame instead.
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
274
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
275 @item @code{paneFont} (class @code{Font})
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
276 @cindex font for menus
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
277 Font name for menu pane titles, in non-toolkit versions of Emacs.
74044
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
278 @end ifnottex
40523
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
279
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
280 @item @code{pointerColor} (class @code{Foreground})
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
281 Color of the mouse cursor.
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
282
74044
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
283 @ifnottex
40523
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
284 @item @code{privateColormap} (class @code{PrivateColormap})
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
285 If @samp{on}, use a private color map, in the case where the ``default
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
286 visual'' of class PseudoColor and Emacs is using it.
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
287
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
288 @item @code{reverseVideo} (class @code{ReverseVideo})
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
289 Switch foreground and background default colors if @samp{on}, use colors as
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
290 specified if @samp{off}.
74044
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
291 @end ifnottex
40523
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
292
75024
6cf73d2a2aa9 Reorder
Jan Djärv <jan.h.d@swipnet.se>
parents: 75023
diff changeset
293 @item @code{screenGamma} (class @code{ScreenGamma})
6cf73d2a2aa9 Reorder
Jan Djärv <jan.h.d@swipnet.se>
parents: 75023
diff changeset
294 @cindex gamma correction
6cf73d2a2aa9 Reorder
Jan Djärv <jan.h.d@swipnet.se>
parents: 75023
diff changeset
295 Gamma correction for colors, equivalent to the frame parameter
6cf73d2a2aa9 Reorder
Jan Djärv <jan.h.d@swipnet.se>
parents: 75023
diff changeset
296 @code{screen-gamma}.
6cf73d2a2aa9 Reorder
Jan Djärv <jan.h.d@swipnet.se>
parents: 75023
diff changeset
297
75023
ab69f7f55139 (Table of Resources): Add scrollBarWidth resource.
Jan Djärv <jan.h.d@swipnet.se>
parents: 74997
diff changeset
298 @item @code{scrollBarWidth} (class @code{ScrollBarWidth})
ab69f7f55139 (Table of Resources): Add scrollBarWidth resource.
Jan Djärv <jan.h.d@swipnet.se>
parents: 74997
diff changeset
299 @cindex scrollbar width
ab69f7f55139 (Table of Resources): Add scrollBarWidth resource.
Jan Djärv <jan.h.d@swipnet.se>
parents: 74997
diff changeset
300 The scroll bar width in pixels, equivalent to the frame parameter
ab69f7f55139 (Table of Resources): Add scrollBarWidth resource.
Jan Djärv <jan.h.d@swipnet.se>
parents: 74997
diff changeset
301 @code{scroll-bar-width}.
ab69f7f55139 (Table of Resources): Add scrollBarWidth resource.
Jan Djärv <jan.h.d@swipnet.se>
parents: 74997
diff changeset
302
74044
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
303 @ifnottex
48045
b18665979968 (Resources): Mention .Xresources.
Dave Love <fx@gnu.org>
parents: 45934
diff changeset
304 @item @code{selectionFont} (class @code{SelectionFont})
40523
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
305 Font name for pop-up menu items, in non-toolkit versions of Emacs. (For
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
306 toolkit versions, see @ref{Lucid Resources}, also see @ref{LessTif
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
307 Resources}.)
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
308
48045
b18665979968 (Resources): Mention .Xresources.
Dave Love <fx@gnu.org>
parents: 45934
diff changeset
309 @item @code{selectionTimeout} (class @code{SelectionTimeout})
b18665979968 (Resources): Mention .Xresources.
Dave Love <fx@gnu.org>
parents: 45934
diff changeset
310 Number of milliseconds to wait for a selection reply.
b18665979968 (Resources): Mention .Xresources.
Dave Love <fx@gnu.org>
parents: 45934
diff changeset
311 If the selection owner doesn't reply in this time, we give up.
b18665979968 (Resources): Mention .Xresources.
Dave Love <fx@gnu.org>
parents: 45934
diff changeset
312 A value of 0 means wait as long as necessary.
b18665979968 (Resources): Mention .Xresources.
Dave Love <fx@gnu.org>
parents: 45934
diff changeset
313
40523
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
314 @item @code{synchronous} (class @code{Synchronous})
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
315 @cindex debugging X problems
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
316 @cindex synchronous X mode
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
317 Run Emacs in synchronous mode if @samp{on}. Synchronous mode is
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
318 useful for debugging X problems.
74044
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
319 @end ifnottex
40523
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
320
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
321 @item @code{title} (class @code{Title})
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
322 Name to display in the title bar of the initial Emacs frame.
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
323
49061
bc9ef65d3429 Move toolBar table entry.
Richard M. Stallman <rms@gnu.org>
parents: 48045
diff changeset
324 @item @code{toolBar} (class @code{ToolBar})
51131
0314017693af useXIM. index entries.
Dave Love <fx@gnu.org>
parents: 49827
diff changeset
325 @cindex tool bar
49061
bc9ef65d3429 Move toolBar table entry.
Richard M. Stallman <rms@gnu.org>
parents: 48045
diff changeset
326 Number of lines to reserve for the tool bar. A zero value suppresses
bc9ef65d3429 Move toolBar table entry.
Richard M. Stallman <rms@gnu.org>
parents: 48045
diff changeset
327 the tool bar. If the value is non-zero and
bc9ef65d3429 Move toolBar table entry.
Richard M. Stallman <rms@gnu.org>
parents: 48045
diff changeset
328 @code{auto-resize-tool-bars} is non-@code{nil}, the tool bar's size
bc9ef65d3429 Move toolBar table entry.
Richard M. Stallman <rms@gnu.org>
parents: 48045
diff changeset
329 will be changed automatically so that all tool bar items are visible.
74997
f2f6a4b1bf80 (Table of Resources): Mention grow-only value for auto-resize-tool-bars.
Kim F. Storm <storm@cua.dk>
parents: 74044
diff changeset
330 If the value of @code{auto-resize-tool-bars} is @code{grow-only},
f2f6a4b1bf80 (Table of Resources): Mention grow-only value for auto-resize-tool-bars.
Kim F. Storm <storm@cua.dk>
parents: 74044
diff changeset
331 the tool bar expands automatically, but does not contract automatically.
f2f6a4b1bf80 (Table of Resources): Mention grow-only value for auto-resize-tool-bars.
Kim F. Storm <storm@cua.dk>
parents: 74044
diff changeset
332 To contract the tool bar, you must redraw the frame by entering @kbd{C-l}.
49061
bc9ef65d3429 Move toolBar table entry.
Richard M. Stallman <rms@gnu.org>
parents: 48045
diff changeset
333
51131
0314017693af useXIM. index entries.
Dave Love <fx@gnu.org>
parents: 49827
diff changeset
334 @item @code{useXIM} (class @code{UseXIM})
0314017693af useXIM. index entries.
Dave Love <fx@gnu.org>
parents: 49827
diff changeset
335 @cindex XIM
0314017693af useXIM. index entries.
Dave Love <fx@gnu.org>
parents: 49827
diff changeset
336 @cindex X input methods
0314017693af useXIM. index entries.
Dave Love <fx@gnu.org>
parents: 49827
diff changeset
337 @cindex input methods, X
0314017693af useXIM. index entries.
Dave Love <fx@gnu.org>
parents: 49827
diff changeset
338 Turn off use of X input methods (XIM) if @samp{false} or @samp{off}.
0314017693af useXIM. index entries.
Dave Love <fx@gnu.org>
parents: 49827
diff changeset
339 This is only relevant if your Emacs is actually built with XIM
0314017693af useXIM. index entries.
Dave Love <fx@gnu.org>
parents: 49827
diff changeset
340 support. It is potentially useful to turn off XIM for efficiency,
0314017693af useXIM. index entries.
Dave Love <fx@gnu.org>
parents: 49827
diff changeset
341 especially slow X client/server links.
0314017693af useXIM. index entries.
Dave Love <fx@gnu.org>
parents: 49827
diff changeset
342
40523
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
343 @item @code{verticalScrollBars} (class @code{ScrollBars})
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
344 Give frames scroll bars if @samp{on}; don't have scroll bars if
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
345 @samp{off}.
60957
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
346
74044
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
347 @ifnottex
60957
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
348 @item @code{visualClass} (class @code{VisualClass})
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
349 Specify the ``visual'' that X should use. This tells X how to handle
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
350 colors.
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
351
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
352 The value should start with one of @samp{TrueColor},
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
353 @samp{PseudoColor}, @samp{DirectColor}, @samp{StaticColor},
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
354 @samp{GrayScale}, and @samp{StaticGray}, followed by
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
355 @samp{-@var{depth}}, where @var{depth} is the number of color planes.
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
356 Most terminals only allow a few ``visuals,'' and the @samp{dpyinfo}
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
357 program outputs information saying which ones.
74044
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
358 @end ifnottex
40523
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
359 @end table
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
360
41368
6a9bede30a62 Move some of the nodes back to cmdargs.texi--they actually describe options.
Richard M. Stallman <rms@gnu.org>
parents: 40765
diff changeset
361 @node Face Resources
6a9bede30a62 Move some of the nodes back to cmdargs.texi--they actually describe options.
Richard M. Stallman <rms@gnu.org>
parents: 40765
diff changeset
362 @appendixsec X Resources for Faces
6a9bede30a62 Move some of the nodes back to cmdargs.texi--they actually describe options.
Richard M. Stallman <rms@gnu.org>
parents: 40765
diff changeset
363
70193
98b37295acb8 (Face Resources): Split table into font resources and the rest.
Richard M. Stallman <rms@gnu.org>
parents: 68846
diff changeset
364 You can use resources to customize the appearance of particular
41368
6a9bede30a62 Move some of the nodes back to cmdargs.texi--they actually describe options.
Richard M. Stallman <rms@gnu.org>
parents: 40765
diff changeset
365 faces (@pxref{Faces}):
40523
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
366
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
367 @table @code
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
368 @item @var{face}.attributeForeground
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
369 Foreground color for face @var{face}.
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
370 @item @var{face}.attributeBackground
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
371 Background color for face @var{face}.
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
372 @item @var{face}.attributeUnderline
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
373 Underline flag for face @var{face}. Use @samp{on} or @samp{true} for
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
374 yes.
70193
98b37295acb8 (Face Resources): Split table into font resources and the rest.
Richard M. Stallman <rms@gnu.org>
parents: 68846
diff changeset
375 @item @var{face}.attributeStrikeThrough
98b37295acb8 (Face Resources): Split table into font resources and the rest.
Richard M. Stallman <rms@gnu.org>
parents: 68846
diff changeset
376 @itemx @var{face}.attributeOverline
98b37295acb8 (Face Resources): Split table into font resources and the rest.
Richard M. Stallman <rms@gnu.org>
parents: 68846
diff changeset
377 @itemx @var{face}.attributeBox
98b37295acb8 (Face Resources): Split table into font resources and the rest.
Richard M. Stallman <rms@gnu.org>
parents: 68846
diff changeset
378 @itemx @var{face}.attributeInverse
98b37295acb8 (Face Resources): Split table into font resources and the rest.
Richard M. Stallman <rms@gnu.org>
parents: 68846
diff changeset
379 Likewise, for other boolean font attributes.
98b37295acb8 (Face Resources): Split table into font resources and the rest.
Richard M. Stallman <rms@gnu.org>
parents: 68846
diff changeset
380 @item @var{face}.attributeStipple
98b37295acb8 (Face Resources): Split table into font resources and the rest.
Richard M. Stallman <rms@gnu.org>
parents: 68846
diff changeset
381 The name of a pixmap data file to use for the stipple pattern, or
98b37295acb8 (Face Resources): Split table into font resources and the rest.
Richard M. Stallman <rms@gnu.org>
parents: 68846
diff changeset
382 @code{false} to not use stipple for the face @var{face}.
98b37295acb8 (Face Resources): Split table into font resources and the rest.
Richard M. Stallman <rms@gnu.org>
parents: 68846
diff changeset
383 @item @var{face}.attributeBackgroundPixmap
98b37295acb8 (Face Resources): Split table into font resources and the rest.
Richard M. Stallman <rms@gnu.org>
parents: 68846
diff changeset
384 The background pixmap for the face @var{face}. Should be a name of a
98b37295acb8 (Face Resources): Split table into font resources and the rest.
Richard M. Stallman <rms@gnu.org>
parents: 68846
diff changeset
385 pixmap file or @code{false}.
98b37295acb8 (Face Resources): Split table into font resources and the rest.
Richard M. Stallman <rms@gnu.org>
parents: 68846
diff changeset
386 @item @var{face}.attributeFont
98b37295acb8 (Face Resources): Split table into font resources and the rest.
Richard M. Stallman <rms@gnu.org>
parents: 68846
diff changeset
387 Font name (full XFD name or valid X abbreviation) for face @var{face}.
98b37295acb8 (Face Resources): Split table into font resources and the rest.
Richard M. Stallman <rms@gnu.org>
parents: 68846
diff changeset
388 Instead of this, you can specify the font through separate attributes.
98b37295acb8 (Face Resources): Split table into font resources and the rest.
Richard M. Stallman <rms@gnu.org>
parents: 68846
diff changeset
389 @end table
98b37295acb8 (Face Resources): Split table into font resources and the rest.
Richard M. Stallman <rms@gnu.org>
parents: 68846
diff changeset
390
98b37295acb8 (Face Resources): Split table into font resources and the rest.
Richard M. Stallman <rms@gnu.org>
parents: 68846
diff changeset
391 Instead of using @code{attributeFont} to specify a font name, you can
98b37295acb8 (Face Resources): Split table into font resources and the rest.
Richard M. Stallman <rms@gnu.org>
parents: 68846
diff changeset
392 select a font through these separate attributes:
98b37295acb8 (Face Resources): Split table into font resources and the rest.
Richard M. Stallman <rms@gnu.org>
parents: 68846
diff changeset
393
98b37295acb8 (Face Resources): Split table into font resources and the rest.
Richard M. Stallman <rms@gnu.org>
parents: 68846
diff changeset
394 @table @code
40523
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
395 @item @var{face}.attributeFamily
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
396 Font family for face @var{face}.
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
397 @item @var{face}.attributeHeight
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
398 Height of the font to use for face @var{face}: either an integer
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
399 specifying the height in units of 1/10@dmn{pt}, or a floating point
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
400 number that specifies a scale factor to scale the underlying face's
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
401 default font, or a function to be called with the default height which
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
402 will return a new height.
70193
98b37295acb8 (Face Resources): Split table into font resources and the rest.
Richard M. Stallman <rms@gnu.org>
parents: 68846
diff changeset
403 @item @var{face}.attributeWidth
98b37295acb8 (Face Resources): Split table into font resources and the rest.
Richard M. Stallman <rms@gnu.org>
parents: 68846
diff changeset
404 @itemx @var{face}.attributeWeight
98b37295acb8 (Face Resources): Split table into font resources and the rest.
Richard M. Stallman <rms@gnu.org>
parents: 68846
diff changeset
405 @itemx @var{face}.attributeSlant
98b37295acb8 (Face Resources): Split table into font resources and the rest.
Richard M. Stallman <rms@gnu.org>
parents: 68846
diff changeset
406 Each of these resources corresponds to a like-named font attribute,
98b37295acb8 (Face Resources): Split table into font resources and the rest.
Richard M. Stallman <rms@gnu.org>
parents: 68846
diff changeset
407 and you write the resource value the same as the symbol you would use
98b37295acb8 (Face Resources): Split table into font resources and the rest.
Richard M. Stallman <rms@gnu.org>
parents: 68846
diff changeset
408 for the font attribute value.
40523
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
409 @item @var{face}.attributeBold
70193
98b37295acb8 (Face Resources): Split table into font resources and the rest.
Richard M. Stallman <rms@gnu.org>
parents: 68846
diff changeset
410 Bold flag for face @var{face}---instead of @code{attributeWeight}. Use @samp{on} or @samp{true} for
98b37295acb8 (Face Resources): Split table into font resources and the rest.
Richard M. Stallman <rms@gnu.org>
parents: 68846
diff changeset
411 yes.
40523
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
412 @item @var{face}.attributeItalic
70193
98b37295acb8 (Face Resources): Split table into font resources and the rest.
Richard M. Stallman <rms@gnu.org>
parents: 68846
diff changeset
413 Italic flag for face @var{face}---instead of @code{attributeSlant}.
40523
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
414 @end table
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
415
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
416 @node Lucid Resources
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
417 @appendixsec Lucid Menu X Resources
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
418 @cindex Menu X Resources (Lucid widgets)
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
419 @cindex Lucid Widget X Resources
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
420
74044
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
421 @ifnottex
40523
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
422 If the Emacs installed at your site was built to use the X toolkit
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
423 with the Lucid menu widgets, then the menu bar is a separate widget and
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
424 has its own resources. The resource names contain @samp{pane.menubar}
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
425 (following, as always, the name of the Emacs invocation, or @samp{Emacs},
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
426 which stands for all Emacs invocations). Specify them like this:
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
427
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
428 @example
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
429 Emacs.pane.menubar.@var{resource}: @var{value}
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
430 @end example
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
431
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
432 @noindent
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
433 For example, to specify the font @samp{8x16} for the menu-bar items,
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
434 write this:
74044
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
435 @end ifnottex
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
436 @iftex
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
437 If the Emacs installed at your site was built to use the X toolkit
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
438 with the Lucid menu widgets, then the menu bar is a separate widget
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
439 and has its own resources. The resource specifications start with
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
440 @samp{Emacs.pane.menubar}---for instance, to specify the font
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
441 @samp{8x16} for the menu-bar items, write this:
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
442 @end iftex
40523
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
443
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
444 @example
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
445 Emacs.pane.menubar.font: 8x16
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
446 @end example
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
447
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
448 @noindent
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
449 Resources for @emph{non-menubar} toolkit pop-up menus have
74997
f2f6a4b1bf80 (Table of Resources): Mention grow-only value for auto-resize-tool-bars.
Kim F. Storm <storm@cua.dk>
parents: 74044
diff changeset
450 @samp{menu*} instead of @samp{pane.menubar}. For example, to specify
74044
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
451 the font @samp{8x16} for the pop-up menu items, write this:
40523
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
452
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
453 @example
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
454 Emacs.menu*.font: 8x16
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
455 @end example
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
456
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
457 @noindent
74044
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
458 For dialog boxes, use @samp{dialog*}:
40523
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
459
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
460 @example
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
461 Emacs.dialog*.font: 8x16
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
462 @end example
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
463
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
464 @noindent
74044
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
465 The Lucid menus can display multilingual text in your locale. For
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
466 more information about fontsets see the man page for
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
467 @code{XCreateFontSet}. To enable multilingual menu text you specify a
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
468 @code{fontSet} resource instead of the font resource. If both
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
469 @code{font} and @code{fontSet} resources are specified, the
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
470 @code{fontSet} resource is used.
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
471
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
472 Thus, to specify @samp{-*-helvetica-medium-r-*--*-120-*-*-*-*-*-*,*}
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
473 for both the popup and menu bar menus, write this:
61426
53f841bc997c Added text about fontSet in Lucid menus
Jan Djärv <jan.h.d@swipnet.se>
parents: 61103
diff changeset
474
53f841bc997c Added text about fontSet in Lucid menus
Jan Djärv <jan.h.d@swipnet.se>
parents: 61103
diff changeset
475 @example
74044
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
476 Emacs*menu*fontSet: -*-helvetica-medium-r-*--*-120-*-*-*-*-*-*,*
61426
53f841bc997c Added text about fontSet in Lucid menus
Jan Djärv <jan.h.d@swipnet.se>
parents: 61103
diff changeset
477 @end example
53f841bc997c Added text about fontSet in Lucid menus
Jan Djärv <jan.h.d@swipnet.se>
parents: 61103
diff changeset
478
53f841bc997c Added text about fontSet in Lucid menus
Jan Djärv <jan.h.d@swipnet.se>
parents: 61103
diff changeset
479 @noindent
74044
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
480 The @samp{*menu*} as a wildcard matches @samp{pane.menubar} and
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
481 @samp{menu@dots{}}.
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
482
40523
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
483 Experience shows that on some systems you may need to add
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
484 @samp{shell.}@: before the @samp{pane.menubar} or @samp{menu*}. On
74044
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
485 some other systems, you must not add @samp{shell.}. The generic wildcard
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
486 approach should work on both kinds of systems.
40523
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
487
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
488 Here is a list of the specific resources for menu bars and pop-up menus:
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
489
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
490 @table @code
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
491 @item font
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
492 Font for menu item text.
61426
53f841bc997c Added text about fontSet in Lucid menus
Jan Djärv <jan.h.d@swipnet.se>
parents: 61103
diff changeset
493 @item fontSet
53f841bc997c Added text about fontSet in Lucid menus
Jan Djärv <jan.h.d@swipnet.se>
parents: 61103
diff changeset
494 Fontset for menu item text.
40523
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
495 @item foreground
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
496 Color of the foreground.
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
497 @item background
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
498 Color of the background.
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
499 @item buttonForeground
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
500 In the menu bar, the color of the foreground for a selected item.
74044
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
501 @ifnottex
40523
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
502 @item horizontalSpacing
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
503 Horizontal spacing in pixels between items. Default is 3.
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
504 @item verticalSpacing
52456
fef189326a95 (Resources): Refer to `editres' man page.
Luc Teirlinck <teirllm@auburn.edu>
parents: 52401
diff changeset
505 Vertical spacing in pixels between items. Default is 2.
40523
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
506 @item arrowSpacing
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
507 Horizontal spacing between the arrow (which indicates a submenu) and
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
508 the associated text. Default is 10.
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
509 @item shadowThickness
52456
fef189326a95 (Resources): Refer to `editres' man page.
Luc Teirlinck <teirllm@auburn.edu>
parents: 52401
diff changeset
510 Thickness of shadow line around the widget. Default is 1.
fef189326a95 (Resources): Refer to `editres' man page.
Luc Teirlinck <teirllm@auburn.edu>
parents: 52401
diff changeset
511
fef189326a95 (Resources): Refer to `editres' man page.
Luc Teirlinck <teirllm@auburn.edu>
parents: 52401
diff changeset
512 Also determines the thickness of shadow lines around other objects,
fef189326a95 (Resources): Refer to `editres' man page.
Luc Teirlinck <teirllm@auburn.edu>
parents: 52401
diff changeset
513 for instance 3D buttons and arrows. If you have the impression that
fef189326a95 (Resources): Refer to `editres' man page.
Luc Teirlinck <teirllm@auburn.edu>
parents: 52401
diff changeset
514 the arrows in the menus do not stand out clearly enough or that the
fef189326a95 (Resources): Refer to `editres' man page.
Luc Teirlinck <teirllm@auburn.edu>
parents: 52401
diff changeset
515 difference between ``in'' and ``out'' buttons is difficult to see, set
fef189326a95 (Resources): Refer to `editres' man page.
Luc Teirlinck <teirllm@auburn.edu>
parents: 52401
diff changeset
516 this to 2. If you have no problems with visibility, the default
fef189326a95 (Resources): Refer to `editres' man page.
Luc Teirlinck <teirllm@auburn.edu>
parents: 52401
diff changeset
517 probably looks better. The background color may also have some effect
fef189326a95 (Resources): Refer to `editres' man page.
Luc Teirlinck <teirllm@auburn.edu>
parents: 52401
diff changeset
518 on the contrast.
74044
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
519 @end ifnottex
40523
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
520 @item margin
52456
fef189326a95 (Resources): Refer to `editres' man page.
Luc Teirlinck <teirllm@auburn.edu>
parents: 52401
diff changeset
521 The margin of the menu bar, in characters. Default is 1.
40523
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
522 @end table
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
523
74044
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
524 @ifnottex
40523
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
525 @node LessTif Resources
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
526 @appendixsec LessTif Menu X Resources
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
527 @cindex Menu X Resources (LessTif widgets)
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
528 @cindex LessTif Widget X Resources
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
529
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
530 If the Emacs installed at your site was built to use the X toolkit
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
531 with the LessTif or Motif widgets, then the menu bar, the dialog
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
532 boxes, the pop-up menus, and the file-selection box are separate
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
533 widgets and have their own resources.
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
534
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
535 The resource names for the menu bar contain @samp{pane.menubar}
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
536 (following, as always, the name of the Emacs invocation, or
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
537 @samp{Emacs}, which stands for all Emacs invocations). Specify them
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
538 like this:
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
539
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
540 @smallexample
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
541 Emacs.pane.menubar.@var{subwidget}.@var{resource}: @var{value}
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
542 @end smallexample
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
543
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
544 Each individual string in the menu bar is a subwidget; the subwidget's
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
545 name is the same as the menu item string. For example, the word
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
546 @samp{File} in the menu bar is part of a subwidget named
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
547 @samp{emacs.pane.menubar.File}. Most likely, you want to specify the
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
548 same resources for the whole menu bar. To do this, use @samp{*} instead
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
549 of a specific subwidget name. For example, to specify the font
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
550 @samp{8x16} for the menu-bar items, write this:
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
551
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
552 @smallexample
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
553 Emacs.pane.menubar.*.fontList: 8x16
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
554 @end smallexample
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
555
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
556 @noindent
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
557 This also specifies the resource value for submenus.
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
558
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
559 Each item in a submenu in the menu bar also has its own name for X
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
560 resources; for example, the @samp{File} submenu has an item named
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
561 @samp{Save (current buffer)}. A resource specification for a submenu
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
562 item looks like this:
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
563
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
564 @smallexample
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
565 Emacs.pane.menubar.popup_*.@var{menu}.@var{item}.@var{resource}: @var{value}
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
566 @end smallexample
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
567
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
568 @noindent
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
569 For example, here's how to specify the font for the @samp{Save (current
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
570 buffer)} item:
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
571
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
572 @smallexample
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
573 Emacs.pane.menubar.popup_*.File.Save (current buffer).fontList: 8x16
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
574 @end smallexample
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
575
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
576 @noindent
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
577 For an item in a second-level submenu, such as @samp{Complete Word}
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
578 under @samp{Spell Checking} under @samp{Tools}, the resource fits this
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
579 template:
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
580
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
581 @smallexample
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
582 Emacs.pane.menubar.popup_*.popup_*.@var{menu}.@var{resource}: @var{value}
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
583 @end smallexample
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
584
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
585 @noindent
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
586 For example,
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
587
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
588 @smallexample
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
589 Emacs.pane.menubar.popup_*.popup_*.Spell Checking.Complete Word: @var{value}
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
590 @end smallexample
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
591
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
592 @noindent
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
593 (This should be one long line.)
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 49322
diff changeset
594
40523
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
595 It's impossible to specify a resource for all the menu-bar items
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
596 without also specifying it for the submenus as well. So if you want the
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
597 submenu items to look different from the menu bar itself, you must ask
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
598 for that in two steps. First, specify the resource for all of them;
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
599 then, override the value for submenus alone. Here is an example:
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
600
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
601 @smallexample
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
602 Emacs.pane.menubar.*.fontList: 8x16
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
603 Emacs.pane.menubar.popup_*.fontList: 8x16
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
604 @end smallexample
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
605
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
606 @noindent
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
607 For LessTif pop-up menus, use @samp{menu*} instead of
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
608 @samp{pane.menubar}. For example, to specify the font @samp{8x16} for
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
609 the pop-up menu items, write this:
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
610
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
611 @smallexample
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
612 Emacs.menu*.fontList: 8x16
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
613 @end smallexample
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
614
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
615 @noindent
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
616 For LessTif dialog boxes, use @samp{dialog} instead of @samp{menu}:
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
617
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
618 @example
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
619 Emacs.dialog*.fontList: 8x16
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
620 Emacs.dialog*.foreground: hotpink
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
621 @end example
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
622
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
623 To specify resources for the LessTif file-selection box, use
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
624 @samp{fsb*}, like this:
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
625
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
626 @example
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
627 Emacs.fsb*.fontList: 8x16
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
628 @end example
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
629
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
630 @iftex
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
631 @medbreak
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
632 @end iftex
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
633 Here is a list of the specific resources for LessTif menu bars and
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
634 pop-up menus:
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
635
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
636 @table @code
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
637 @item armColor
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
638 The color to show in an armed button.
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
639 @item fontList
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
640 The font to use.
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
641 @item marginBottom
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
642 @itemx marginHeight
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
643 @itemx marginLeft
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
644 @itemx marginRight
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
645 @itemx marginTop
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
646 @itemx marginWidth
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
647 Amount of space to leave around the item, within the border.
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
648 @item borderWidth
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
649 The width of the border around the menu item, on all sides.
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
650 @item shadowThickness
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
651 The width of the border shadow.
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
652 @item bottomShadowColor
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
653 The color for the border shadow, on the bottom and the right.
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
654 @item topShadowColor
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
655 The color for the border shadow, on the top and the left.
198cafe77e0f Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
656 @end table
74044
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
657 @end ifnottex
49322
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
658
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
659
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
660 @node GTK resources
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
661 @appendixsec GTK resources
74044
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
662 @iftex
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
663 The most common way to customize the GTK widgets Emacs uses (menus, dialogs
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
664 tool bars and scroll bars) is by choosing an appropriate theme, for example
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
665 with the GNOME theme selector. You can also do Emacs specific customization
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
666 by inserting GTK style directives in the file @file{~/.emacs.d/gtkrc}. Some GTK
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
667 themes ignore customizations in @file{~/.emacs.d/gtkrc} so not everything
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
668 works with all themes. To customize Emacs font, background, faces, etc., use
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
669 the normal X resources (@pxref{Resources}). We will present some examples of
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
670 customizations here, but for a more detailed description, see the online manual
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
671
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
672 The first example is just one line. It changes the font on all GTK widgets
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
673 to courier with size 12:
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
674
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
675 @smallexample
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
676 gtk-font-name = "courier 12"
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
677 @end smallexample
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
678
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
679 The thing to note is that the font name is not an X font name, like
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
680 -*-helvetica-medium-r-*--*-120-*-*-*-*-*-*, but a Pango font name. A Pango
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
681 font name is basically of the format "family style size", where the style
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
682 is optional as in the case above. A name with a style could be for example:
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
683
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
684 @smallexample
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
685 gtk-font-name = "helvetica bold 10"
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
686 @end smallexample
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
687
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
688 To customize widgets you first define a style and then apply the style to
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
689 the widgets. Here is an example that sets the font for menus, but not
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
690 for other widgets:
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
691
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
692 @smallexample
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
693 # @r{Define the style @samp{menufont}.}
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
694 style "menufont"
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
695 @{
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
696 font_name = "helvetica bold 14" # This is a Pango font name
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
697 @}
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
698
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
699 # @r{Specify that widget type @samp{*emacs-menuitem*} uses @samp{menufont}.}
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
700 widget "*emacs-menuitem*" style "menufont"
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
701 @end smallexample
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
702
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
703 The widget name in this example contains wildcards, so the style will be
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
704 applied to all widgets that match "*emacs-menuitem*". The widgets are
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
705 named by the way they are contained, from the outer widget to the inner widget.
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
706 So to apply the style "my_style" (not shown) with the full, absolute name, for
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
707 the menubar and the scroll bar in Emacs we use:
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
708
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
709 @smallexample
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
710 widget "Emacs.pane.menubar" style "my_style"
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
711 widget "Emacs.pane.emacs.verticalScrollBar" style "my_style"
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
712 @end smallexample
74997
f2f6a4b1bf80 (Table of Resources): Mention grow-only value for auto-resize-tool-bars.
Kim F. Storm <storm@cua.dk>
parents: 74044
diff changeset
713
74044
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
714 But to avoid having to type it all, wildcards are often used. @samp{*}
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
715 matches zero or more characters and @samp{?} matches one character. So "*"
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
716 matches all widgets.
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
717
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
718 Each widget has a class (for example GtkMenuItem) and a name (emacs-menuitem).
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
719 You can assign styles by name or by class. In this example we have used the
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
720 class:
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
721
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
722 @smallexample
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
723 style "menufont"
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
724 @{
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
725 font_name = "helvetica bold 14"
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
726 @}
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
727
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
728 widget_class "*GtkMenuBar" style "menufont"
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
729 @end smallexample
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
730
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
731 @noindent
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
732 The names and classes for the GTK widgets Emacs uses are:
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
733
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
734 @multitable {@code{verticalScrollbar plus}} {@code{GtkFileSelection} and some}
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
735 @item @code{emacs-filedialog}
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
736 @tab @code{GtkFileSelection}
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
737 @item @code{emacs-dialog}
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
738 @tab @code{GtkDialog}
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
739 @item @code{Emacs}
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
740 @tab @code{GtkWindow}
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
741 @item @code{pane}
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
742 @tab @code{GtkVHbox}
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
743 @item @code{emacs}
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
744 @tab @code{GtkFixed}
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
745 @item @code{verticalScrollBar}
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
746 @tab @code{GtkVScrollbar}
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
747 @item @code{emacs-toolbar}
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
748 @tab @code{GtkToolbar}
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
749 @item @code{menubar}
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
750 @tab @code{GtkMenuBar}
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
751 @item @code{emacs-menuitem}
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
752 @tab anything in menus
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
753 @end multitable
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
754
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
755 GTK absolute names are quite strange when it comes to menus
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
756 and dialogs. The names do not start with @samp{Emacs}, as they are
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
757 free-standing windows and not contained (in the GTK sense) by the
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
758 Emacs GtkWindow. To customize the dialogs and menus, use wildcards like this:
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
759
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
760 @smallexample
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
761 widget "*emacs-dialog*" style "my_dialog_style"
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
762 widget "*emacs-filedialog* style "my_file_style"
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
763 widget "*emacs-menuitem* style "my_menu_style"
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
764 @end smallexample
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
765
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
766 If you specify a customization in @file{~/.emacs.d/gtkrc}, then it
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
767 automatically applies only to Emacs, since other programs don't read
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
768 that file. For example, the drop down menu in the file dialog can not
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
769 be customized by any absolute widget name, only by an absolute class
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
770 name. This is because the widgets in the drop down menu do not
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
771 have names and the menu is not contained in the Emacs GtkWindow. To
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
772 have all menus in Emacs look the same, use this in
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
773 @file{~/.emacs.d/gtkrc}:
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
774
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
775 @smallexample
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
776 widget_class "*Menu*" style "my_menu_style"
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
777 @end smallexample
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
778
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
779 Here is a more elaborate example, showing how to change the parts of
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
780 the scroll bar:
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
781
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
782 @smallexample
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
783 style "scroll"
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
784 @{
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
785 fg[NORMAL] = "red"@ @ @ @ @ # @r{The arrow color.}
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
786 bg[NORMAL] = "yellow"@ @ # @r{The thumb and background around the arrow.}
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
787 bg[ACTIVE] = "blue"@ @ @ @ # @r{The trough color.}
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
788 bg[PRELIGHT] = "white"@ # @r{The thumb color when the mouse is over it.}
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
789 @}
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
790
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
791 widget "*verticalScrollBar*" style "scroll"
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
792 @end smallexample
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
793 @end iftex
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
794
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
795 @ifnottex
49322
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
796 @cindex GTK resources and customization
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
797 @cindex resource files for GTK
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
798 @cindex @file{~/.gtkrc-2.0} file
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
799 @cindex @file{~/.emacs.d/gtkrc} file
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
800
70508
b703396a9586 Minor fix.
Jan Djärv <jan.h.d@swipnet.se>
parents: 70193
diff changeset
801 If Emacs was built to use the GTK widget set, then the menu bar, tool bar,
60957
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
802 scroll bar and the dialogs are customized with the standard GTK
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
803 customization file, @file{~/.gtkrc-2.0}, or with the Emacs specific
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
804 file @file{~/.emacs.d/gtkrc}. We recommend that you use
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
805 @file{~/.emacs.d/gtkrc} for customizations, since @file{~/.gtkrc-2.0}
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
806 seems to be ignored when running GConf with GNOME. These files apply
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
807 only to GTK widget features. To customize Emacs font, background,
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
808 faces, etc., use the normal X resources (@pxref{Resources}).
49322
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
809
52839
f4f7a204bc03 (GTK resources): Clean up previous change.
Richard M. Stallman <rms@gnu.org>
parents: 52825
diff changeset
810 Some GTK themes override these mechanisms, which means that using
60957
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
811 these mechanisms will not work to customize them.
52825
34537e2e1a05 * xresources.texi (GTK resources): Added a note that some themes
Jan Djärv <jan.h.d@swipnet.se>
parents: 52671
diff changeset
812
60957
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
813 In these files you first define a style and say what it means; then
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
814 you specify to apply the style to various widget types (@pxref{GTK
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
815 widget names}). Here is an example of how to change the font for
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
816 Emacs menus:
49322
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
817
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
818 @smallexample
70508
b703396a9586 Minor fix.
Jan Djärv <jan.h.d@swipnet.se>
parents: 70193
diff changeset
819 # @r{Define the style @samp{menufont}.}
49322
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
820 style "menufont"
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
821 @{
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
822 font_name = "helvetica bold 14" # This is a Pango font name
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
823 @}
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
824
70508
b703396a9586 Minor fix.
Jan Djärv <jan.h.d@swipnet.se>
parents: 70193
diff changeset
825 # @r{Specify that widget type @samp{*emacs-menuitem*} uses @samp{menufont}.}
49322
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
826 widget "*emacs-menuitem*" style "menufont"
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
827 @end smallexample
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
828
52825
34537e2e1a05 * xresources.texi (GTK resources): Added a note that some themes
Jan Djärv <jan.h.d@swipnet.se>
parents: 52671
diff changeset
829 Here is a more elaborate example, showing how to change the parts of
34537e2e1a05 * xresources.texi (GTK resources): Added a note that some themes
Jan Djärv <jan.h.d@swipnet.se>
parents: 52671
diff changeset
830 the scroll bar:
52839
f4f7a204bc03 (GTK resources): Clean up previous change.
Richard M. Stallman <rms@gnu.org>
parents: 52825
diff changeset
831
52825
34537e2e1a05 * xresources.texi (GTK resources): Added a note that some themes
Jan Djärv <jan.h.d@swipnet.se>
parents: 52671
diff changeset
832 @smallexample
34537e2e1a05 * xresources.texi (GTK resources): Added a note that some themes
Jan Djärv <jan.h.d@swipnet.se>
parents: 52671
diff changeset
833 style "scroll"
34537e2e1a05 * xresources.texi (GTK resources): Added a note that some themes
Jan Djärv <jan.h.d@swipnet.se>
parents: 52671
diff changeset
834 @{
60957
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
835 fg[NORMAL] = "red"@ @ @ @ @ # @r{The arrow color.}
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
836 bg[NORMAL] = "yellow"@ @ # @r{The thumb and background around the arrow.}
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
837 bg[ACTIVE] = "blue"@ @ @ @ # @r{The trough color.}
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
838 bg[PRELIGHT] = "white"@ # @r{The thumb color when the mouse is over it.}
52825
34537e2e1a05 * xresources.texi (GTK resources): Added a note that some themes
Jan Djärv <jan.h.d@swipnet.se>
parents: 52671
diff changeset
839 @}
34537e2e1a05 * xresources.texi (GTK resources): Added a note that some themes
Jan Djärv <jan.h.d@swipnet.se>
parents: 52671
diff changeset
840
34537e2e1a05 * xresources.texi (GTK resources): Added a note that some themes
Jan Djärv <jan.h.d@swipnet.se>
parents: 52671
diff changeset
841 widget "*verticalScrollBar*" style "scroll"
34537e2e1a05 * xresources.texi (GTK resources): Added a note that some themes
Jan Djärv <jan.h.d@swipnet.se>
parents: 52671
diff changeset
842 @end smallexample
34537e2e1a05 * xresources.texi (GTK resources): Added a note that some themes
Jan Djärv <jan.h.d@swipnet.se>
parents: 52671
diff changeset
843
60975
c7c6caacbc9e (GTK resources): Fix last change.
Eli Zaretskii <eliz@gnu.org>
parents: 60974
diff changeset
844 There are also parameters that affect GTK as a whole. For example,
c7c6caacbc9e (GTK resources): Fix last change.
Eli Zaretskii <eliz@gnu.org>
parents: 60974
diff changeset
845 the property @code{gtk-font-name} sets the default font for GTK. You
c7c6caacbc9e (GTK resources): Fix last change.
Eli Zaretskii <eliz@gnu.org>
parents: 60974
diff changeset
846 must use Pango font names (@pxref{GTK styles}). A GTK resources file
c7c6caacbc9e (GTK resources): Fix last change.
Eli Zaretskii <eliz@gnu.org>
parents: 60974
diff changeset
847 that just sets a default font looks like this:
49322
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
848
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
849 @smallexample
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
850 gtk-font-name = "courier 12"
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
851 @end smallexample
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
852
60957
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
853 The GTK resources file is fully described in the GTK API document.
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
854 This can be found in
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
855 @file{@var{prefix}/share/gtk-doc/html/gtk/gtk-resource-files.html},
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
856 where @file{prefix} is the directory in which the GTK libraries were
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
857 installed (usually @file{/usr} or @file{/usr/local}). You can also
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
858 find the document online, at
49322
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
859 @uref{http://developer.gnome.org/doc/API/2.0/gtk/gtk-Resource-Files.html}.
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
860
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
861 @menu
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
862 * GTK widget names:: How widgets in GTK are named in general.
60974
3b3a70819e4b (GTK resources): Update menu for changed node name.
Luc Teirlinck <teirllm@auburn.edu>
parents: 60957
diff changeset
863 * GTK Names in Emacs:: GTK widget names in Emacs.
49322
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
864 * GTK styles:: What can be customized in a GTK widget.
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
865 @end menu
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
866
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
867 @node GTK widget names
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
868 @appendixsubsec GTK widget names
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
869 @cindex GTK widget names
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
870
60957
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
871 A GTK widget is specified by its @dfn{widget class} and
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
872 @dfn{widget name}. The widget class is the type of the widget: for
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
873 example, @code{GtkMenuBar}. The widget name is the name given to a
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
874 specific widget. A widget always has a class, but need not have a
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
875 name.
49322
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
876
60957
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
877 @dfn{Absolute names} are sequences of widget names or widget
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
878 classes, corresponding to hierarchies of widgets embedded within
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
879 other widgets. For example, if a @code{GtkWindow} named @code{top}
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
880 contains a @code{GtkVBox} named @code{box}, which in turn contains
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
881 a @code{GtkMenuBar} called @code{menubar}, the absolute class name
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
882 of the menu-bar widget is @code{GtkWindow.GtkVBox.GtkMenuBar}, and
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
883 its absolute widget name is @code{top.box.menubar}.
49322
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
884
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
885 When assigning a style to a widget, you can use the absolute class
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
886 name or the absolute widget name.
60957
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
887
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
888 There are two commands to specify changes for widgets:
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
889
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
890 @table @asis
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
891 @item @code{widget_class}
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
892 specifies a style for widgets based on the absolute class name.
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
893
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
894 @item @code{widget}
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
895 specifies a style for widgets based on the absolute class name,
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
896 or just the class.
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
897 @end table
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
898
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
899 @noindent
61103
d3fa4a52d032 Minor fixes.
Richard M. Stallman <rms@gnu.org>
parents: 60975
diff changeset
900 You must specify the class and the style in double-quotes, and put
d3fa4a52d032 Minor fixes.
Richard M. Stallman <rms@gnu.org>
parents: 60975
diff changeset
901 these commands at the top level in the GTK customization file, like
60957
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
902 this:
49322
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
903
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
904 @smallexample
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
905 style "menufont"
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
906 @{
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
907 font_name = "helvetica bold 14"
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
908 @}
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
909
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
910 widget "top.box.menubar" style "menufont"
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
911 widget_class "GtkWindow.GtkVBox.GtkMenuBar" style "menufont"
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
912 @end smallexample
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
913
60957
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
914 Matching of absolute names uses shell wildcard syntax: @samp{*}
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
915 matches zero or more characters and @samp{?} matches one character.
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
916 This example assigns @code{base_style} to all widgets:
49322
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
917
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
918 @smallexample
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
919 widget "*" style "base_style"
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
920 @end smallexample
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
921
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
922 Given the absolute class name @code{GtkWindow.GtkVBox.GtkMenuBar}
60957
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
923 and the corresponding absolute widget name @code{top.box.menubar}, all
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
924 these examples specify @code{my_style} for the menu bar:
49322
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
925
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
926 @smallexample
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
927 widget_class "GtkWindow.GtkVBox.GtkMenuBar" style "my_style"
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
928 widget_class "GtkWindow.*.GtkMenuBar" style "my_style"
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
929 widget_class "*GtkMenuBar" style "my_style"
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
930 widget "top.box.menubar" style "my_style"
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
931 widget "*box*menubar" style "my_style"
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
932 widget "*menubar" style "my_style"
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
933 widget "*menu*" style "my_style"
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
934 @end smallexample
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
935
60957
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
936 @node GTK Names in Emacs
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
937 @appendixsubsec GTK Widget Names in Emacs
49322
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
938 @cindex GTK widget names
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
939 @cindex GTK widget classes
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
940
60957
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
941 In Emacs, the top level widget for a frame is a @code{GtkWindow}
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
942 that contains a @code{GtkVBox}. The @code{GtkVBox} contains the
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
943 @code{GtkMenuBar} and a @code{GtkFixed} widget. The vertical scroll
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
944 bars, @code{GtkVScrollbar}, are contained in the @code{GtkFixed}
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
945 widget. The text you write in Emacs is drawn in the @code{GtkFixed}
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
946 widget.
49322
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
947
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
948 Dialogs in Emacs are @code{GtkDialog} widgets. The file dialog is a
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
949 @code{GtkFileSelection} widget.
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
950
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
951 @noindent
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
952 To set a style for the menu bar using the absolute class name, use:
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
953
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
954 @smallexample
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
955 widget_class "GtkWindow.GtkVBox.GtkMenuBar" style "my_style"
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
956 @end smallexample
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
957
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
958 @noindent
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
959 For the scroll bar, the absolute class name is:
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
960
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
961 @smallexample
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 49322
diff changeset
962 widget_class
49322
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
963 "GtkWindow.GtkVBox.GtkFixed.GtkVScrollbar"
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
964 style "my_style"
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
965 @end smallexample
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
966
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
967 @noindent
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
968 The names for the emacs widgets, and their classes, are:
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
969
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
970 @multitable {@code{verticalScrollbar plus}} {@code{GtkFileSelection} and some}
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
971 @item @code{emacs-filedialog}
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
972 @tab @code{GtkFileSelection}
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
973 @item @code{emacs-dialog}
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
974 @tab @code{GtkDialog}
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
975 @item @code{Emacs}
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
976 @tab @code{GtkWindow}
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
977 @item @code{pane}
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
978 @tab @code{GtkVHbox}
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
979 @item @code{emacs}
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
980 @tab @code{GtkFixed}
52671
d08a70365018 xresources.texi (GTK names in Emacs): Correct typo.
Jan Djärv <jan.h.d@swipnet.se>
parents: 52456
diff changeset
981 @item @code{verticalScrollBar}
49827
754f6f48efbe * xresources.texi (GTK names in Emacs): Add emacs-toolbar - GtkToolbar
Jan Djärv <jan.h.d@swipnet.se>
parents: 49600
diff changeset
982 @tab @code{GtkVScrollbar}
754f6f48efbe * xresources.texi (GTK names in Emacs): Add emacs-toolbar - GtkToolbar
Jan Djärv <jan.h.d@swipnet.se>
parents: 49600
diff changeset
983 @item @code{emacs-toolbar}
754f6f48efbe * xresources.texi (GTK names in Emacs): Add emacs-toolbar - GtkToolbar
Jan Djärv <jan.h.d@swipnet.se>
parents: 49600
diff changeset
984 @tab @code{GtkToolbar}
49322
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
985 @item @code{menubar}
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
986 @tab @code{GtkMenuBar}
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
987 @item @code{emacs-menuitem}
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
988 @tab anything in menus
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
989 @end multitable
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
990
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
991 @noindent
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
992 Thus, for Emacs you can write the two examples above as:
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
993
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
994 @smallexample
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
995 widget "Emacs.pane.menubar" style "my_style"
52671
d08a70365018 xresources.texi (GTK names in Emacs): Correct typo.
Jan Djärv <jan.h.d@swipnet.se>
parents: 52456
diff changeset
996 widget "Emacs.pane.emacs.verticalScrollBar" style "my_style"
49322
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
997 @end smallexample
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
998
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
999 GTK absolute names are quite strange when it comes to menus
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 49322
diff changeset
1000 and dialogs. The names do not start with @samp{Emacs}, as they are
49322
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1001 free-standing windows and not contained (in the GTK sense) by the
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1002 Emacs GtkWindow. To customize the dialogs and menus, use wildcards like this:
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1003
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1004 @smallexample
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1005 widget "*emacs-dialog*" style "my_dialog_style"
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1006 widget "*emacs-filedialog* style "my_file_style"
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1007 widget "*emacs-menuitem* style "my_menu_style"
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1008 @end smallexample
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1009
60957
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
1010 If you specify a customization in @file{~/.emacs.d/gtkrc}, then it
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
1011 automatically applies only to Emacs, since other programs don't read
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
1012 that file. For example, the drop down menu in the file dialog can not
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
1013 be customized by any absolute widget name, only by an absolute class
61103
d3fa4a52d032 Minor fixes.
Richard M. Stallman <rms@gnu.org>
parents: 60975
diff changeset
1014 name. This is because the widgets in the drop down menu do not
60957
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
1015 have names and the menu is not contained in the Emacs GtkWindow. To
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
1016 have all menus in Emacs look the same, use this in
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
1017 @file{~/.emacs.d/gtkrc}:
49322
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1018
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1019 @smallexample
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1020 widget_class "*Menu*" style "my_menu_style"
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1021 @end smallexample
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1022
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1023 @node GTK styles
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1024 @appendixsubsec GTK styles
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1025 @cindex GTK styles
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1026
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1027 In a GTK style you specify the appearance widgets shall have. You
60957
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
1028 can specify foreground and background color, background pixmap and
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
1029 font. The edit widget (where you edit the text) in Emacs is a GTK
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
1030 widget, but trying to specify a style for the edit widget will have no
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
1031 effect. This is so that Emacs compiled for GTK is compatible with
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
1032 Emacs compiled for other X toolkits. The settings for foreground,
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
1033 background and font for the edit widget is taken from the X resources;
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
1034 @pxref{Resources}. Here is an example of two style declarations,
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
1035 @samp{default} and @samp{ruler}:
49322
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1036
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1037 @smallexample
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1038 pixmap_path "/usr/share/pixmaps:/usr/include/X11/pixmaps"
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1039
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1040 style "default"
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1041 @{
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1042 font_name = "helvetica 12"
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1043
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1044 bg[NORMAL] = @{ 0.83, 0.80, 0.73 @}
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1045 bg[SELECTED] = @{ 0.0, 0.55, 0.55 @}
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1046 bg[INSENSITIVE] = @{ 0.77, 0.77, 0.66 @}
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1047 bg[ACTIVE] = @{ 0.0, 0.55, 0.55 @}
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1048 bg[PRELIGHT] = @{ 0.0, 0.55, 0.55 @}
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1049
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1050 fg[NORMAL] = "black"
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1051 fg[SELECTED] = @{ 0.9, 0.9, 0.9 @}
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1052 fg[ACTIVE] = "black"
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1053 fg[PRELIGHT] = @{ 0.9, 0.9, 0.9 @}
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1054
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1055 base[INSENSITIVE] = "#777766"
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1056 text[INSENSITIVE] = @{ 0.60, 0.65, 0.57 @}
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1057
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1058 bg_pixmap[NORMAL] = "background.xpm"
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1059 bg_pixmap[INSENSITIVE] = "background.xpm"
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1060 bg_pixmap[ACTIVE] = "background.xpm"
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 49322
diff changeset
1061 bg_pixmap[PRELIGHT] = "<none>"
49322
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1062
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1063 @}
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1064
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1065 style "ruler" = "default"
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1066 @{
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1067 font_name = "helvetica 8"
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1068 @}
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1069
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1070 @end smallexample
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1071
60957
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
1072 The style @samp{ruler} inherits from @samp{default}. This way you can build
49322
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1073 on existing styles. The syntax for fonts and colors is described below.
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1074
60957
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
1075 As this example shows, it is possible to specify several values for
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
1076 foreground and background depending on the widget's @dfn{state}. The
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
1077 possible states are:
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
1078
49322
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1079 @table @code
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1080 @item NORMAL
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1081 This is the default state for widgets.
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1082 @item ACTIVE
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1083 This is the state for a widget that is ready to do something. It is
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 49322
diff changeset
1084 also for the trough of a scroll bar, i.e. @code{bg[ACTIVE] = "red"}
49322
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1085 sets the scroll bar trough to red. Buttons that have been pressed but
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1086 not released yet (``armed'') are in this state.
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1087 @item PRELIGHT
68703
0498f490b6b8 (GTK styles): Minor clarifications.
Richard M. Stallman <rms@gnu.org>
parents: 68639
diff changeset
1088 This is the state for a widget that can be manipulated, when the mouse
0498f490b6b8 (GTK styles): Minor clarifications.
Richard M. Stallman <rms@gnu.org>
parents: 68639
diff changeset
1089 pointer is over it---for example when the mouse is over the thumb in
0498f490b6b8 (GTK styles): Minor clarifications.
Richard M. Stallman <rms@gnu.org>
parents: 68639
diff changeset
1090 the scroll bar or over a menu item. When the mouse is over a button
0498f490b6b8 (GTK styles): Minor clarifications.
Richard M. Stallman <rms@gnu.org>
parents: 68639
diff changeset
1091 that is not pressed, the button is in this state.
49322
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1092 @item SELECTED
68703
0498f490b6b8 (GTK styles): Minor clarifications.
Richard M. Stallman <rms@gnu.org>
parents: 68639
diff changeset
1093 This is the state for data that has been selected by the user. It can
0498f490b6b8 (GTK styles): Minor clarifications.
Richard M. Stallman <rms@gnu.org>
parents: 68639
diff changeset
1094 be selected text or items selected in a list. This state is not used
0498f490b6b8 (GTK styles): Minor clarifications.
Richard M. Stallman <rms@gnu.org>
parents: 68639
diff changeset
1095 in Emacs.
49322
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1096 @item INSENSITIVE
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1097 This is the state for widgets that are visible, but they can not be
60957
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
1098 manipulated in the usual way---for example, buttons that can't be
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
1099 pressed, and disabled menu items. To display disabled menu items in
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
1100 yellow, use @code{fg[INSENSITIVE] = "yellow"}.
49322
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1101 @end table
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1102
60957
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
1103 Here are the things that can go in a style declaration:
49322
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1104
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1105 @table @code
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1106 @item bg[@var{state}] = @var{color}
60957
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
1107 This specifies the background color for the widget. Note that
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
1108 editable text doesn't use @code{bg}; it uses @code{base} instead.
49322
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1109
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1110 @item base[@var{state}] = @var{color}
60957
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
1111 This specifies the background color for editable text. In Emacs, this
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
1112 color is used for the background of the text fields in the file
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
1113 dialog.
49322
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1114
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1115 @item bg_pixmap[@var{state}] = "@var{pixmap}"
60957
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
1116 This specifies an image background (instead of a background color).
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
1117 @var{pixmap} should be the image file name. GTK can use a number of
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
1118 image file formats, including XPM, XBM, GIF, JPEG and PNG. If you
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
1119 want a widget to use the same image as its parent, use
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
1120 @samp{<parent>}. If you don't want any image, use @samp{<none>}.
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
1121 @samp{<none>} is the way to cancel a background image inherited from a
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
1122 parent style.
49322
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1123
60957
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
1124 You can't specify the file by its absolute file name. GTK looks for
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
1125 the pixmap file in directories specified in @code{pixmap_path}.
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
1126 @code{pixmap_path} is a colon-separated list of directories within
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
1127 double quotes, specified at the top level in a @file{gtkrc} file
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
1128 (i.e. not inside a style definition; see example above):
49322
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1129
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1130 @smallexample
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1131 pixmap_path "/usr/share/pixmaps:/usr/include/X11/pixmaps"
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1132 @end smallexample
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1133
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1134 @item fg[@var{state}] = @var{color}
60957
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
1135 This specifies the foreground color for widgets to use. It is the
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
1136 color of text in menus and buttons, and the color for the arrows in
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
1137 the scroll bar. For editable text, use @code{text}.
49322
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1138
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1139 @item text[@var{state}] = @var{color}
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 49322
diff changeset
1140 This is the color for editable text. In Emacs, this color is used for the
49322
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1141 text fields in the file dialog.
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1142
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1143 @item font_name = "@var{font}"
64466
24be77ee0c97 (GTK styles): Delete duplicate words.
Juri Linkov <juri@jurta.org>
parents: 61505
diff changeset
1144 This specifies the font for text in the widget. @var{font} is a
60957
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
1145 Pango font name, for example @samp{Sans Italic 10}, @samp{Helvetica
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
1146 Bold 12}, @samp{Courier 14}, @samp{Times 18}. See below for exact
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
1147 syntax. The names are case insensitive.
49322
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1148 @end table
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1149
60957
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
1150 There are three ways to specify a color: by name, in hexadecimal
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
1151 form, and with an RGB triplet.
49322
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1152
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1153 @noindent
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1154 A color name is written within double quotes, for example @code{"red"}.
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1155
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1156 @noindent
60957
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
1157 Hexadecimal form is the same as in X:
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
1158 @code{#@var{rrrr}@var{gggg}@var{bbbb}}, where all three color specs
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
1159 must have the same number of hex digits (1, 2, 3 or 4).
49322
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1160
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1161 @noindent
60957
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
1162 An RGB triplet looks like @code{@{ @var{r}, @var{g}, @var{b} @}},
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
1163 where @var{r}, @var{g} and @var{b} are either integers in the range
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
1164 0-65535 or floats in the range 0.0-1.0.
49322
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1165
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1166 Pango font names have the form ``@var{family-list} @var{style-options}
72101
c7e4f78b81a6 Move periods and commas inside quotes.
Richard M. Stallman <rms@gnu.org>
parents: 70508
diff changeset
1167 @var{size}.''
49322
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1168 @cindex Pango font name
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1169 @noindent
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1170 @var{family-list} is a comma separated list of font families optionally
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1171 terminated by a comma. This way you can specify several families and the
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1172 first one found will be used. @var{family} corresponds to the second part in
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1173 an X font name, for example in
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1174
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1175 @smallexample
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1176 -adobe-times-medium-r-normal--12-120-75-75-p-64-iso10646-1
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1177 @end smallexample
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1178
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1179 @noindent
72102
51459eadddf2 (GTK styles): Fix texinfo usage.
Richard M. Stallman <rms@gnu.org>
parents: 72101
diff changeset
1180 the family name is @samp{times}.
49322
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1181
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1182 @noindent
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1183 @var{style-options} is a whitespace separated list of words where each word
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1184 is a style, variant, weight, or stretch. The default value for all of
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1185 these is @code{normal}.
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1186
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1187 @noindent
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1188 A `style' corresponds to the fourth part of an X font name. In X font
60957
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
1189 names it is the character @samp{r}, @samp{i} or @samp{o}; in Pango
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
1190 font names the corresponding values are @code{normal}, @code{italic},
d7efcbcdef3b (X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents: 58789
diff changeset
1191 or @code{oblique}.
49322
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1192
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1193 @noindent
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1194 A `variant' is either @code{normal} or @code{small-caps}.
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1195 Small caps is a font with the lower case characters replaced by
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1196 smaller variants of the capital characters.
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1197
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1198 @noindent
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1199 Weight describes the ``boldness'' of a font. It corresponds to the third
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1200 part of an X font name. It is one of @code{ultra-light}, @code{light},
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1201 @code{normal}, @code{bold}, @code{ultra-bold}, or @code{heavy}.
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1202
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1203 @noindent
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1204 Stretch gives the width of the font relative to other designs within a
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1205 family. It corresponds to the fifth part of an X font name. It is one of
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1206 @code{ultra-condensed}, @code{extra-condensed}, @code{condensed},
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1207 @code{semi-condensed}, @code{normal}, @code{semi-expanded},
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1208 @code{expanded}, @code{extra-expanded}, or @code{ultra-expanded}.
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1209
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1210 @noindent
2cbb0b823e83 GTK version
Jan Djärv <jan.h.d@swipnet.se>
parents: 49061
diff changeset
1211 @var{size} is a decimal number that describes the font size in points.
74044
fd7d868143e8 Merge text from xresmini.
Jan Djärv <jan.h.d@swipnet.se>
parents: 72102
diff changeset
1212 @end ifnottex
52401
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 51523
diff changeset
1213
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 51523
diff changeset
1214 @ignore
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 51523
diff changeset
1215 arch-tag: 9b6ff773-48b6-41f6-b2f9-f114b8bdd97f
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 51523
diff changeset
1216 @end ignore