Mercurial > emacs
annotate man/xresources.texi @ 60975:c7c6caacbc9e
(GTK resources): Fix last change.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Sat, 26 Mar 2005 15:25:26 +0000 |
parents | 3b3a70819e4b |
children | d3fa4a52d032 |
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. |
49322 | 2 @c Copyright (C) 1987,93,94,95,1997,2001,03 Free Software Foundation, Inc. |
40523
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
3 @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
|
4 @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
|
5 @appendix X Options and Resources |
40523
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
6 |
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
|
7 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
|
8 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
|
9 can customize some of the same aspects using the system registry. |
60957
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
10 @xref{MS-Windows Registry}. |
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
11 |
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
12 When Emacs is built using an `X toolkit', such as Lucid or LessTif, |
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
13 you need to use X resources to customize the appearance of the |
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
14 widgets, including the menu-bar, scroll-bar, and dialog boxes. This |
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
15 is because the libraries that implement these don't provide for |
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
16 customization through Emacs. GTK+ widgets use a separate system of |
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
17 `GTK resources', which we will also describe. |
40591 | 18 |
19 @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
|
20 * 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
|
21 * 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
|
22 * Face Resources:: X resources for customizing faces. |
40591 | 23 * Lucid Resources:: X resources for Lucid menus. |
24 * LessTif Resources:: X resources for LessTif and Motif menus. | |
49322 | 25 * GTK resources:: Resources for GTK widgets. |
40591 | 26 @end menu |
27 | |
41373
11a1b4e2b45a
Fix node names and cross-references.
Eli Zaretskii <eliz@gnu.org>
parents:
41368
diff
changeset
|
28 @node Resources |
40523
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
29 @appendixsec X Resources |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
30 @cindex resources |
49061
bc9ef65d3429
Move toolBar table entry.
Richard M. Stallman <rms@gnu.org>
parents:
48045
diff
changeset
|
31 @cindex X resources |
bc9ef65d3429
Move toolBar table entry.
Richard M. Stallman <rms@gnu.org>
parents:
48045
diff
changeset
|
32 @cindex @file{~/.Xdefaults} file |
bc9ef65d3429
Move toolBar table entry.
Richard M. Stallman <rms@gnu.org>
parents:
48045
diff
changeset
|
33 @cindex @file{~/.Xresources} file |
40523
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
34 |
42886
0aa2696d5de7
(Table of Resources): Under menuBar, add xrefs to the nodes
Richard M. Stallman <rms@gnu.org>
parents:
42715
diff
changeset
|
35 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
|
36 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
|
37 default values for these options in your X resources file, usually |
48045 | 38 named @file{~/.Xdefaults} or @file{~/.Xresources}. |
39 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
|
40 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
|
41 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
|
42 instance, @samp{xrdb ~/.Xdefaults}. |
40523
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
43 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
44 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
|
45 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
|
46 (optionally even for all programs). |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
47 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
48 @cindex Registry (MS-Windows) |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
49 MS-Windows systems don't support @file{~/.Xdefaults} files, but |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
50 Emacs compiled for Windows looks for X resources in the Windows |
44326 | 51 Registry, under the key @samp{HKEY_CURRENT_USER\SOFTWARE\GNU\Emacs} |
52 and then under the key @samp{HKEY_LOCAL_MACHINE\SOFTWARE\GNU\Emacs}. | |
51523
00fdc9cef470
Note that scrollbars and menus are not customizable.
Jason Rumney <jasonr@gnu.org>
parents:
51131
diff
changeset
|
53 The menu and scrollbars are native widgets on MS-Windows, so they are |
00fdc9cef470
Note that scrollbars and menus are not customizable.
Jason Rumney <jasonr@gnu.org>
parents:
51131
diff
changeset
|
54 only customizable via the system-wide settings in the Display Control |
00fdc9cef470
Note that scrollbars and menus are not customizable.
Jason Rumney <jasonr@gnu.org>
parents:
51131
diff
changeset
|
55 Panel. |
40523
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
56 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
57 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
|
58 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
|
59 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
|
60 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
|
61 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
|
62 @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
|
63 names. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
64 |
60957
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
65 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
|
66 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
|
67 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
|
68 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
|
69 |
40523
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
70 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
|
71 on one line, like this: |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
72 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
73 @example |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
74 emacs.borderWidth: 2 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
75 @end example |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
76 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
77 @noindent |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
78 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
|
79 in that class. Here's an example: |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
80 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
81 @example |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
82 emacs.BorderWidth: 2 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
83 @end example |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
84 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
85 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
|
86 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
|
87 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
|
88 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
|
89 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
|
90 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
91 @example |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
92 emacs.BorderWidth: 2 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
93 emacs.borderWidth: 4 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
94 @end example |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
95 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
96 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
|
97 Also, command-line options always override the X resources file. |
60957
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
98 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
|
99 resource names. |
40523
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
100 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
101 @table @samp |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
102 @item -name @var{name} |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
103 @opindex --name |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
104 @itemx --name=@var{name} |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
105 @cindex resource name, command-line argument |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
106 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
|
107 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
|
108 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
|
109 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
110 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
|
111 executable's name as the resource name. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
112 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
113 @item -xrm @var{resource-values} |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
114 @opindex --xrm |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
115 @itemx --xrm=@var{resource-values} |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
116 @cindex resource values, command-line argument |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
117 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
|
118 @end table |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
119 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
120 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
|
121 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
|
122 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
123 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
|
124 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
|
125 @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
|
126 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
|
127 file. Here is an example: |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
128 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
129 @example |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
130 Emacs.BorderWidth: 2 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
131 Emacs.borderWidth: 4 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
132 @end example |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
133 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
134 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
|
135 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
|
136 @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
|
137 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
|
138 @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
|
139 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
|
140 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
|
141 take precedence over all other resource specifications. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
142 |
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
|
143 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
|
144 is to use the @code{editres} program. Select @samp{Get Tree} from the |
6a9bede30a62
Move some of the nodes back to cmdargs.texi--they actually describe options.
Richard M. Stallman <rms@gnu.org>
parents:
40765
diff
changeset
|
145 @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
|
146 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
|
147 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
|
148 @samp{Show Resource Box} from the @samp{Commands} menu. This displays |
6a9bede30a62
Move some of the nodes back to cmdargs.texi--they actually describe options.
Richard M. Stallman <rms@gnu.org>
parents:
40765
diff
changeset
|
149 a list of all the meaningful X resources and allows you to edit them. |
6a9bede30a62
Move some of the nodes back to cmdargs.texi--they actually describe options.
Richard M. Stallman <rms@gnu.org>
parents:
40765
diff
changeset
|
150 Changes take effect immediately if you click on the @samp{Apply} button. |
52456
fef189326a95
(Resources): Refer to `editres' man page.
Luc Teirlinck <teirllm@auburn.edu>
parents:
52401
diff
changeset
|
151 (See the @code{editres} man page for more 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
|
152 |
6a9bede30a62
Move some of the nodes back to cmdargs.texi--they actually describe options.
Richard M. Stallman <rms@gnu.org>
parents:
40765
diff
changeset
|
153 @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
|
154 @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
|
155 |
6a9bede30a62
Move some of the nodes back to cmdargs.texi--they actually describe options.
Richard M. Stallman <rms@gnu.org>
parents:
40765
diff
changeset
|
156 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
|
157 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
|
158 with the class that it belongs to: |
40523
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
159 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
160 @table @asis |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
161 @item @code{background} (class @code{Background}) |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
162 Background color name. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
163 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
164 @item @code{bitmapIcon} (class @code{BitmapIcon}) |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
165 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
|
166 manager choose an icon if @samp{off}. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
167 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
168 @item @code{borderColor} (class @code{BorderColor}) |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
169 Color name for the external border. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
170 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
171 @item @code{borderWidth} (class @code{BorderWidth}) |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
172 Width in pixels of the external border. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
173 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
174 @item @code{cursorColor} (class @code{Foreground}) |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
175 Color name for text cursor (point). |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
176 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
177 @item @code{font} (class @code{Font}) |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
178 Font name for text (or fontset name, @pxref{Fontsets}). |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
179 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
180 @item @code{foreground} (class @code{Foreground}) |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
181 Color name for text. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
182 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
183 @item @code{geometry} (class @code{Geometry}) |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
184 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
|
185 @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
|
186 as the Emacs frame itself. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
187 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
188 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
|
189 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
|
190 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
|
191 all frames. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
192 |
42714
59c4dd0ca0e8
(Table of Resources): Document the new fullscreen resource.
Eli Zaretskii <eliz@gnu.org>
parents:
41373
diff
changeset
|
193 @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
|
194 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
|
195 @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
|
196 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
|
197 (@pxref{Window Size X}). |
42714
59c4dd0ca0e8
(Table of Resources): Document the new fullscreen resource.
Eli Zaretskii <eliz@gnu.org>
parents:
41373
diff
changeset
|
198 |
59c4dd0ca0e8
(Table of Resources): Document the new fullscreen resource.
Eli Zaretskii <eliz@gnu.org>
parents:
41373
diff
changeset
|
199 Note that this applies to all frames created, not just the initial |
59c4dd0ca0e8
(Table of Resources): Document the new fullscreen resource.
Eli Zaretskii <eliz@gnu.org>
parents:
41373
diff
changeset
|
200 one. |
59c4dd0ca0e8
(Table of Resources): Document the new fullscreen resource.
Eli Zaretskii <eliz@gnu.org>
parents:
41373
diff
changeset
|
201 |
40523
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
202 @item @code{iconName} (class @code{Title}) |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
203 Name to display in the icon. |
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{internalBorder} (class @code{BorderWidth}) |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
206 Width in pixels of the internal border. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
207 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
208 @item @code{lineSpacing} (class @code{LineSpacing}) |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
209 @cindex line spacing |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
210 @cindex leading |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
211 Additional space (@dfn{leading}) between lines, in pixels. |
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{menuBar} (class @code{MenuBar}) |
51131 | 214 @cindex menu bar |
42886
0aa2696d5de7
(Table of Resources): Under menuBar, add xrefs to the nodes
Richard M. Stallman <rms@gnu.org>
parents:
42715
diff
changeset
|
215 Give frames menu bars if @samp{on}; don't have menu bars if |
0aa2696d5de7
(Table of Resources): Under menuBar, add xrefs to the nodes
Richard M. Stallman <rms@gnu.org>
parents:
42715
diff
changeset
|
216 @samp{off}. @xref{Lucid Resources}, and @ref{LessTif Resources}, for |
0aa2696d5de7
(Table of Resources): Under menuBar, add xrefs to the nodes
Richard M. Stallman <rms@gnu.org>
parents:
42715
diff
changeset
|
217 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
|
218 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
219 @item @code{minibuffer} (class @code{Minibuffer}) |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
220 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
|
221 It will use a separate minibuffer frame instead. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
222 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
223 @item @code{paneFont} (class @code{Font}) |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
224 @cindex font for menus |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
225 Font name for menu pane titles, in non-toolkit versions of Emacs. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
226 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
227 @item @code{pointerColor} (class @code{Foreground}) |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
228 Color of the mouse cursor. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
229 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
230 @item @code{privateColormap} (class @code{PrivateColormap}) |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
231 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
|
232 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
|
233 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
234 @item @code{reverseVideo} (class @code{ReverseVideo}) |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
235 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
|
236 specified if @samp{off}. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
237 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
238 @item @code{screenGamma} (class @code{ScreenGamma}) |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
239 @cindex gamma correction |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
240 Gamma correction for colors, equivalent to the frame parameter |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
241 @code{screen-gamma}. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
242 |
48045 | 243 @item @code{selectionFont} (class @code{SelectionFont}) |
40523
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
244 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
|
245 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
|
246 Resources}.) |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
247 |
48045 | 248 @item @code{selectionTimeout} (class @code{SelectionTimeout}) |
249 Number of milliseconds to wait for a selection reply. | |
250 If the selection owner doesn't reply in this time, we give up. | |
251 A value of 0 means wait as long as necessary. | |
252 | |
40523
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
253 @item @code{synchronous} (class @code{Synchronous}) |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
254 @cindex debugging X problems |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
255 @cindex synchronous X mode |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
256 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
|
257 useful for debugging X problems. |
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{title} (class @code{Title}) |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
260 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
|
261 |
49061
bc9ef65d3429
Move toolBar table entry.
Richard M. Stallman <rms@gnu.org>
parents:
48045
diff
changeset
|
262 @item @code{toolBar} (class @code{ToolBar}) |
51131 | 263 @cindex tool bar |
49061
bc9ef65d3429
Move toolBar table entry.
Richard M. Stallman <rms@gnu.org>
parents:
48045
diff
changeset
|
264 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
|
265 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
|
266 @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
|
267 will be changed automatically so that all tool bar items are visible. |
bc9ef65d3429
Move toolBar table entry.
Richard M. Stallman <rms@gnu.org>
parents:
48045
diff
changeset
|
268 |
51131 | 269 @item @code{useXIM} (class @code{UseXIM}) |
270 @cindex XIM | |
271 @cindex X input methods | |
272 @cindex input methods, X | |
273 Turn off use of X input methods (XIM) if @samp{false} or @samp{off}. | |
274 This is only relevant if your Emacs is actually built with XIM | |
275 support. It is potentially useful to turn off XIM for efficiency, | |
276 especially slow X client/server links. | |
277 | |
40523
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
278 @item @code{verticalScrollBars} (class @code{ScrollBars}) |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
279 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
|
280 @samp{off}. |
60957
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
281 |
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
282 @item @code{visualClass} (class @code{VisualClass}) |
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
283 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
|
284 colors. |
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
285 |
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
286 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
|
287 @samp{PseudoColor}, @samp{DirectColor}, @samp{StaticColor}, |
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
288 @samp{GrayScale}, and @samp{StaticGray}, followed by |
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
289 @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
|
290 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
|
291 program outputs information saying which ones. |
40523
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
292 @end table |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
293 |
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
|
294 @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
|
295 @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
|
296 |
6a9bede30a62
Move some of the nodes back to cmdargs.texi--they actually describe options.
Richard M. Stallman <rms@gnu.org>
parents:
40765
diff
changeset
|
297 You can also use resources to customize the appearance of particular |
6a9bede30a62
Move some of the nodes back to cmdargs.texi--they actually describe options.
Richard M. Stallman <rms@gnu.org>
parents:
40765
diff
changeset
|
298 faces (@pxref{Faces}): |
40523
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
299 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
300 @table @code |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
301 @item @var{face}.attributeFont |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
302 Font for face @var{face}. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
303 @item @var{face}.attributeForeground |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
304 Foreground color for face @var{face}. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
305 @item @var{face}.attributeBackground |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
306 Background color for face @var{face}. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
307 @item @var{face}.attributeUnderline |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
308 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
|
309 yes. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
310 @item @var{face}.attributeFamily |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
311 Font family for face @var{face}. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
312 @item @var{face}.attributeWidth |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
313 Relative proportional width of the font to use for face @var{face}. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
314 It should be one of @code{ultra-condensed}, @code{extra-condensed}, |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
315 @code{condensed}, @code{semi-condensed}, @code{normal}, |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
316 @code{semi-expanded}, @code{expanded}, @code{extra-expanded}, or |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
317 @code{ultra-expanded}. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
318 @item @var{face}.attributeHeight |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
319 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
|
320 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
|
321 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
|
322 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
|
323 will return a new height. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
324 @item @var{face}.attributeWeight |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
325 A weight to use for the face @var{face}. It must be one of |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
326 @code{ultra-bold}, @code{extra-bold}, @code{bold}, |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
327 @code{semi-bold}, @code{normal}, @code{semi-light}, @code{light}, |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
328 @code{extra-light}, @code{ultra-light}. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
329 @item @var{face}.attributeSlant |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
330 The slant to use for the font of face @var{face}. It must be one of |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
331 @code{italic}, @code{oblique}, @code{normal}, |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
332 @code{reverse-italic}, or @code{reverse-oblique}. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
333 @item @var{face}.attributeStrikeThrough |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
334 Whether the face @var{face} should be drawn with a line striking |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
335 through the characters. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
336 @item @var{face}.attributeOverline |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
337 Whether the characters in the face @var{face} should be overlined. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
338 @item @var{face}.attributeBox |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
339 Whether to draw a box around the characters in face @var{face}. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
340 @item @var{face}.attributeInverse |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
341 Whether to display the characters in face @var{face} in inverse |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
342 video. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
343 @item @var{face}.attributeStipple |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
344 The name of a pixmap data file to use for the stipple pattern, or |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
345 @code{false} to not use stipple for the face @var{face}. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
346 @item @var{face}.attributeBackgroundPixmap |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
347 The background pixmap for the face @var{face}. Should be a name of a |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
348 pixmap file or @code{false}. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
349 @item @var{face}.attributeBold |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
350 Whether to draw the characters in the face @var{face} as bold. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
351 @item @var{face}.attributeItalic |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
352 Whether to draw the characters in the face @var{face} as italic. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
353 @end table |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
354 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
355 @node Lucid Resources |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
356 @appendixsec Lucid Menu X Resources |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
357 @cindex Menu X Resources (Lucid widgets) |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
358 @cindex Lucid Widget X Resources |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
359 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
360 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
|
361 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
|
362 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
|
363 (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
|
364 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
|
365 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
366 @example |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
367 Emacs.pane.menubar.@var{resource}: @var{value} |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
368 @end example |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
369 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
370 @noindent |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
371 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
|
372 write this: |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
373 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
374 @example |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
375 Emacs.pane.menubar.font: 8x16 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
376 @end example |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
377 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
378 @noindent |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
379 Resources for @emph{non-menubar} toolkit pop-up menus have |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
380 @samp{menu*}, in like fashion. For example, to specify the font |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
381 @samp{8x16} for the pop-up menu items, write this: |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
382 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
383 @example |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
384 Emacs.menu*.font: 8x16 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
385 @end example |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
386 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
387 @noindent |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
388 For 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
|
389 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
390 @example |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
391 Emacs.dialog*.font: 8x16 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
392 @end example |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
393 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
394 @noindent |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
395 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
|
396 @samp{shell.}@: before the @samp{pane.menubar} or @samp{menu*}. On |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
397 some other systems, you must not add @samp{shell.}. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
398 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
399 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
|
400 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
401 @table @code |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
402 @item font |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
403 Font for menu item text. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
404 @item foreground |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
405 Color of the foreground. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
406 @item background |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
407 Color of the background. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
408 @item buttonForeground |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
409 In the menu bar, the color of the foreground for a selected item. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
410 @item horizontalSpacing |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
411 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
|
412 @item verticalSpacing |
52456
fef189326a95
(Resources): Refer to `editres' man page.
Luc Teirlinck <teirllm@auburn.edu>
parents:
52401
diff
changeset
|
413 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
|
414 @item arrowSpacing |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
415 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
|
416 the associated text. Default is 10. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
417 @item shadowThickness |
52456
fef189326a95
(Resources): Refer to `editres' man page.
Luc Teirlinck <teirllm@auburn.edu>
parents:
52401
diff
changeset
|
418 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
|
419 |
fef189326a95
(Resources): Refer to `editres' man page.
Luc Teirlinck <teirllm@auburn.edu>
parents:
52401
diff
changeset
|
420 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
|
421 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
|
422 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
|
423 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
|
424 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
|
425 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
|
426 on the contrast. |
40523
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
427 @item margin |
52456
fef189326a95
(Resources): Refer to `editres' man page.
Luc Teirlinck <teirllm@auburn.edu>
parents:
52401
diff
changeset
|
428 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
|
429 @end table |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
430 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
431 @node LessTif Resources |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
432 @appendixsec LessTif Menu X Resources |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
433 @cindex Menu X Resources (LessTif widgets) |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
434 @cindex LessTif Widget X Resources |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
435 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
436 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
|
437 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
|
438 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
|
439 widgets and have their own resources. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
440 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
441 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
|
442 (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
|
443 @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
|
444 like this: |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
445 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
446 @smallexample |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
447 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
|
448 @end smallexample |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
449 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
450 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
|
451 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
|
452 @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
|
453 @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
|
454 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
|
455 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
|
456 @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
|
457 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
458 @smallexample |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
459 Emacs.pane.menubar.*.fontList: 8x16 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
460 @end smallexample |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
461 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
462 @noindent |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
463 This also specifies the resource value for submenus. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
464 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
465 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
|
466 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
|
467 @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
|
468 item looks like this: |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
469 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
470 @smallexample |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
471 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
|
472 @end smallexample |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
473 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
474 @noindent |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
475 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
|
476 buffer)} item: |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
477 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
478 @smallexample |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
479 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
|
480 @end smallexample |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
481 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
482 @noindent |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
483 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
|
484 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
|
485 template: |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
486 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
487 @smallexample |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
488 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
|
489 @end smallexample |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
490 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
491 @noindent |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
492 For example, |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
493 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
494 @smallexample |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
495 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
|
496 @end smallexample |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
497 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
498 @noindent |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
499 (This should be one long line.) |
49600
23a1cea22d13
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
49322
diff
changeset
|
500 |
40523
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
501 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
|
502 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
|
503 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
|
504 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
|
505 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
|
506 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
507 @smallexample |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
508 Emacs.pane.menubar.*.fontList: 8x16 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
509 Emacs.pane.menubar.popup_*.fontList: 8x16 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
510 @end smallexample |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
511 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
512 @noindent |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
513 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
|
514 @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
|
515 the pop-up menu items, write this: |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
516 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
517 @smallexample |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
518 Emacs.menu*.fontList: 8x16 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
519 @end smallexample |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
520 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
521 @noindent |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
522 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
|
523 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
524 @example |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
525 Emacs.dialog*.fontList: 8x16 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
526 Emacs.dialog*.foreground: hotpink |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
527 @end example |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
528 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
529 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
|
530 @samp{fsb*}, like this: |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
531 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
532 @example |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
533 Emacs.fsb*.fontList: 8x16 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
534 @end example |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
535 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
536 @iftex |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
537 @medbreak |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
538 @end iftex |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
539 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
|
540 pop-up menus: |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
541 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
542 @table @code |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
543 @item armColor |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
544 The color to show in an armed button. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
545 @item fontList |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
546 The font to use. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
547 @item marginBottom |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
548 @itemx marginHeight |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
549 @itemx marginLeft |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
550 @itemx marginRight |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
551 @itemx marginTop |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
552 @itemx marginWidth |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
553 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
|
554 @item borderWidth |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
555 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
|
556 @item shadowThickness |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
557 The width of the border shadow. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
558 @item bottomShadowColor |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
559 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
|
560 @item topShadowColor |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
561 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
|
562 @end table |
49322 | 563 |
564 | |
565 @node GTK resources | |
566 @appendixsec GTK resources | |
567 @cindex GTK resources and customization | |
568 @cindex resource files for GTK | |
569 @cindex @file{~/.gtkrc-2.0} file | |
570 @cindex @file{~/.emacs.d/gtkrc} file | |
571 | |
60957
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
572 If Emacs was built to use the GTK widget set, then the menu bar, |
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
573 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
|
574 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
|
575 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
|
576 @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
|
577 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
|
578 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
|
579 faces, etc., use the normal X resources (@pxref{Resources}). |
49322 | 580 |
52839
f4f7a204bc03
(GTK resources): Clean up previous change.
Richard M. Stallman <rms@gnu.org>
parents:
52825
diff
changeset
|
581 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
|
582 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
|
583 |
60957
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
584 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
|
585 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
|
586 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
|
587 Emacs menus: |
49322 | 588 |
589 @smallexample | |
60957
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
590 # @r{Define the style @samp{metafont}.} |
49322 | 591 style "menufont" |
592 @{ | |
593 font_name = "helvetica bold 14" # This is a Pango font name | |
594 @} | |
595 | |
60957
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
596 # @r{Specify that widget type @samp{*emacs-menuitem*} uses @samp{metafont}.} |
49322 | 597 widget "*emacs-menuitem*" style "menufont" |
598 @end smallexample | |
599 | |
52825
34537e2e1a05
* xresources.texi (GTK resources): Added a note that some themes
Jan Djärv <jan.h.d@swipnet.se>
parents:
52671
diff
changeset
|
600 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
|
601 the scroll bar: |
52839
f4f7a204bc03
(GTK resources): Clean up previous change.
Richard M. Stallman <rms@gnu.org>
parents:
52825
diff
changeset
|
602 |
52825
34537e2e1a05
* xresources.texi (GTK resources): Added a note that some themes
Jan Djärv <jan.h.d@swipnet.se>
parents:
52671
diff
changeset
|
603 @smallexample |
34537e2e1a05
* xresources.texi (GTK resources): Added a note that some themes
Jan Djärv <jan.h.d@swipnet.se>
parents:
52671
diff
changeset
|
604 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
|
605 @{ |
60957
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
606 fg[NORMAL] = "red"@ @ @ @ @ # @r{The arrow color.} |
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
607 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
|
608 bg[ACTIVE] = "blue"@ @ @ @ # @r{The trough color.} |
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
609 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
|
610 @} |
34537e2e1a05
* xresources.texi (GTK resources): Added a note that some themes
Jan Djärv <jan.h.d@swipnet.se>
parents:
52671
diff
changeset
|
611 |
34537e2e1a05
* xresources.texi (GTK resources): Added a note that some themes
Jan Djärv <jan.h.d@swipnet.se>
parents:
52671
diff
changeset
|
612 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
|
613 @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
|
614 |
60975
c7c6caacbc9e
(GTK resources): Fix last change.
Eli Zaretskii <eliz@gnu.org>
parents:
60974
diff
changeset
|
615 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
|
616 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
|
617 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
|
618 that just sets a default font looks like this: |
49322 | 619 |
620 @smallexample | |
621 gtk-font-name = "courier 12" | |
622 @end smallexample | |
623 | |
60957
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
624 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
|
625 This can be found in |
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
626 @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
|
627 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
|
628 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
|
629 find the document online, at |
49322 | 630 @uref{http://developer.gnome.org/doc/API/2.0/gtk/gtk-Resource-Files.html}. |
631 | |
632 @menu | |
633 * 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
|
634 * GTK Names in Emacs:: GTK widget names in Emacs. |
49322 | 635 * GTK styles:: What can be customized in a GTK widget. |
636 @end menu | |
637 | |
638 @node GTK widget names | |
639 @appendixsubsec GTK widget names | |
640 @cindex GTK widget names | |
641 | |
60957
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
642 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
|
643 @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
|
644 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
|
645 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
|
646 name. |
49322 | 647 |
60957
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
648 @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
|
649 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
|
650 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
|
651 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
|
652 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
|
653 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
|
654 its absolute widget name is @code{top.box.menubar}. |
49322 | 655 |
656 When assigning a style to a widget, you can use the absolute class | |
657 name or the absolute widget name. | |
60957
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
658 |
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
659 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
|
660 |
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
661 @table @asis |
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
662 @item @code{widget_class} |
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
663 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
|
664 |
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
665 @item @code{widget} |
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
666 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
|
667 or just the class. |
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
668 @end table |
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
669 |
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
670 @noindent |
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
671 You must soecify the class and the style in double-quotes, and put |
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
672 these commands at the top level in a @file{~/.gtkrc-2.0} file, like |
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
673 this: |
49322 | 674 |
675 @smallexample | |
676 style "menufont" | |
677 @{ | |
678 font_name = "helvetica bold 14" | |
679 @} | |
680 | |
681 widget "top.box.menubar" style "menufont" | |
682 widget_class "GtkWindow.GtkVBox.GtkMenuBar" style "menufont" | |
683 @end smallexample | |
684 | |
60957
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
685 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
|
686 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
|
687 This example assigns @code{base_style} to all widgets: |
49322 | 688 |
689 @smallexample | |
690 widget "*" style "base_style" | |
691 @end smallexample | |
692 | |
693 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
|
694 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
|
695 these examples specify @code{my_style} for the menu bar: |
49322 | 696 |
697 @smallexample | |
698 widget_class "GtkWindow.GtkVBox.GtkMenuBar" style "my_style" | |
699 widget_class "GtkWindow.*.GtkMenuBar" style "my_style" | |
700 widget_class "*GtkMenuBar" style "my_style" | |
701 widget "top.box.menubar" style "my_style" | |
702 widget "*box*menubar" style "my_style" | |
703 widget "*menubar" style "my_style" | |
704 widget "*menu*" style "my_style" | |
705 @end smallexample | |
706 | |
60957
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
707 @node GTK Names in Emacs |
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
708 @appendixsubsec GTK Widget Names in Emacs |
49322 | 709 @cindex GTK widget names |
710 @cindex GTK widget classes | |
711 | |
60957
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
712 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
|
713 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
|
714 @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
|
715 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
|
716 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
|
717 widget. |
49322 | 718 |
719 Dialogs in Emacs are @code{GtkDialog} widgets. The file dialog is a | |
720 @code{GtkFileSelection} widget. | |
721 | |
722 @noindent | |
723 To set a style for the menu bar using the absolute class name, use: | |
724 | |
725 @smallexample | |
726 widget_class "GtkWindow.GtkVBox.GtkMenuBar" style "my_style" | |
727 @end smallexample | |
728 | |
729 @noindent | |
730 For the scroll bar, the absolute class name is: | |
731 | |
732 @smallexample | |
49600
23a1cea22d13
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
49322
diff
changeset
|
733 widget_class |
49322 | 734 "GtkWindow.GtkVBox.GtkFixed.GtkVScrollbar" |
735 style "my_style" | |
736 @end smallexample | |
737 | |
738 @noindent | |
739 The names for the emacs widgets, and their classes, are: | |
740 | |
741 @multitable {@code{verticalScrollbar plus}} {@code{GtkFileSelection} and some} | |
742 @item @code{emacs-filedialog} | |
743 @tab @code{GtkFileSelection} | |
744 @item @code{emacs-dialog} | |
745 @tab @code{GtkDialog} | |
746 @item @code{Emacs} | |
747 @tab @code{GtkWindow} | |
748 @item @code{pane} | |
749 @tab @code{GtkVHbox} | |
750 @item @code{emacs} | |
751 @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
|
752 @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
|
753 @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
|
754 @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
|
755 @tab @code{GtkToolbar} |
49322 | 756 @item @code{menubar} |
757 @tab @code{GtkMenuBar} | |
758 @item @code{emacs-menuitem} | |
759 @tab anything in menus | |
760 @end multitable | |
761 | |
762 @noindent | |
763 Thus, for Emacs you can write the two examples above as: | |
764 | |
765 @smallexample | |
766 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
|
767 widget "Emacs.pane.emacs.verticalScrollBar" style "my_style" |
49322 | 768 @end smallexample |
769 | |
770 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
|
771 and dialogs. The names do not start with @samp{Emacs}, as they are |
49322 | 772 free-standing windows and not contained (in the GTK sense) by the |
773 Emacs GtkWindow. To customize the dialogs and menus, use wildcards like this: | |
774 | |
775 @smallexample | |
776 widget "*emacs-dialog*" style "my_dialog_style" | |
777 widget "*emacs-filedialog* style "my_file_style" | |
778 widget "*emacs-menuitem* style "my_menu_style" | |
779 @end smallexample | |
780 | |
60957
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
781 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
|
782 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
|
783 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
|
784 be customized by any absolute widget name, only by an absolute class |
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
785 name. This is so because the widgets in the drop down menu do not |
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
786 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
|
787 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
|
788 @file{~/.emacs.d/gtkrc}: |
49322 | 789 |
790 @smallexample | |
791 widget_class "*Menu*" style "my_menu_style" | |
792 @end smallexample | |
793 | |
794 @node GTK styles | |
795 @appendixsubsec GTK styles | |
796 @cindex GTK styles | |
797 | |
798 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
|
799 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
|
800 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
|
801 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
|
802 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
|
803 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
|
804 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
|
805 @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
|
806 @samp{default} and @samp{ruler}: |
49322 | 807 |
808 @smallexample | |
809 pixmap_path "/usr/share/pixmaps:/usr/include/X11/pixmaps" | |
810 | |
811 style "default" | |
812 @{ | |
813 font_name = "helvetica 12" | |
814 | |
815 bg[NORMAL] = @{ 0.83, 0.80, 0.73 @} | |
816 bg[SELECTED] = @{ 0.0, 0.55, 0.55 @} | |
817 bg[INSENSITIVE] = @{ 0.77, 0.77, 0.66 @} | |
818 bg[ACTIVE] = @{ 0.0, 0.55, 0.55 @} | |
819 bg[PRELIGHT] = @{ 0.0, 0.55, 0.55 @} | |
820 | |
821 fg[NORMAL] = "black" | |
822 fg[SELECTED] = @{ 0.9, 0.9, 0.9 @} | |
823 fg[ACTIVE] = "black" | |
824 fg[PRELIGHT] = @{ 0.9, 0.9, 0.9 @} | |
825 | |
826 base[INSENSITIVE] = "#777766" | |
827 text[INSENSITIVE] = @{ 0.60, 0.65, 0.57 @} | |
828 | |
829 bg_pixmap[NORMAL] = "background.xpm" | |
830 bg_pixmap[INSENSITIVE] = "background.xpm" | |
831 bg_pixmap[ACTIVE] = "background.xpm" | |
49600
23a1cea22d13
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
49322
diff
changeset
|
832 bg_pixmap[PRELIGHT] = "<none>" |
49322 | 833 |
834 @} | |
835 | |
836 style "ruler" = "default" | |
837 @{ | |
838 font_name = "helvetica 8" | |
839 @} | |
840 | |
841 @end smallexample | |
842 | |
60957
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
843 The style @samp{ruler} inherits from @samp{default}. This way you can build |
49322 | 844 on existing styles. The syntax for fonts and colors is described below. |
845 | |
60957
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
846 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
|
847 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
|
848 possible states are: |
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
849 |
49322 | 850 @table @code |
851 @item NORMAL | |
852 This is the default state for widgets. | |
853 @item ACTIVE | |
854 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
|
855 also for the trough of a scroll bar, i.e. @code{bg[ACTIVE] = "red"} |
49322 | 856 sets the scroll bar trough to red. Buttons that have been pressed but |
857 not released yet (``armed'') are in this state. | |
858 @item PRELIGHT | |
859 This is the state when widgets that can be manipulated have the mouse | |
860 pointer over them. For example when the mouse is over the thumb in the | |
861 scroll bar or over a menu item. When the mouse is over a button that | |
862 is not pressed, the button is in this state. | |
863 @item SELECTED | |
864 This is the state when some data has been selected by the user. It can | |
865 be selected text or items selected in a list. | |
866 There is no place in Emacs where this setting has any effect. | |
867 @item INSENSITIVE | |
868 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
|
869 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
|
870 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
|
871 yellow, use @code{fg[INSENSITIVE] = "yellow"}. |
49322 | 872 @end table |
873 | |
60957
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
874 Here are the things that can go in a style declaration: |
49322 | 875 |
876 @table @code | |
877 @item bg[@var{state}] = @var{color} | |
60957
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
878 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
|
879 editable text doesn't use @code{bg}; it uses @code{base} instead. |
49322 | 880 |
881 @item base[@var{state}] = @var{color} | |
60957
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
882 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
|
883 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
|
884 dialog. |
49322 | 885 |
886 @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
|
887 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
|
888 @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
|
889 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
|
890 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
|
891 @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
|
892 @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
|
893 parent style. |
49322 | 894 |
60957
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
895 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
|
896 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
|
897 @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
|
898 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
|
899 (i.e. not inside a style definition; see example above): |
49322 | 900 |
901 @smallexample | |
902 pixmap_path "/usr/share/pixmaps:/usr/include/X11/pixmaps" | |
903 @end smallexample | |
904 | |
905 @item fg[@var{state}] = @var{color} | |
60957
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
906 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
|
907 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
|
908 the scroll bar. For editable text, use @code{text}. |
49322 | 909 |
910 @item text[@var{state}] = @var{color} | |
49600
23a1cea22d13
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
49322
diff
changeset
|
911 This is the color for editable text. In Emacs, this color is used for the |
49322 | 912 text fields in the file dialog. |
913 | |
914 @item font_name = "@var{font}" | |
60957
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
915 This specifies the the font for text in the widget. @var{font} is a |
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
916 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
|
917 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
|
918 syntax. The names are case insensitive. |
49322 | 919 @end table |
920 | |
60957
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
921 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
|
922 form, and with an RGB triplet. |
49322 | 923 |
924 @noindent | |
925 A color name is written within double quotes, for example @code{"red"}. | |
926 | |
927 @noindent | |
60957
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
928 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
|
929 @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
|
930 must have the same number of hex digits (1, 2, 3 or 4). |
49322 | 931 |
932 @noindent | |
60957
d7efcbcdef3b
(X Resources): GTK options documented too.
Richard M. Stallman <rms@gnu.org>
parents:
58789
diff
changeset
|
933 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
|
934 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
|
935 0-65535 or floats in the range 0.0-1.0. |
49322 | 936 |
937 Pango font names have the form ``@var{family-list} @var{style-options} | |
938 @var{size}''. | |
939 @cindex Pango font name | |
940 @noindent | |
941 @var{family-list} is a comma separated list of font families optionally | |
942 terminated by a comma. This way you can specify several families and the | |
943 first one found will be used. @var{family} corresponds to the second part in | |
944 an X font name, for example in | |
945 | |
946 @smallexample | |
947 -adobe-times-medium-r-normal--12-120-75-75-p-64-iso10646-1 | |
948 @end smallexample | |
949 | |
950 @noindent | |
951 the family name is ``times''. | |
952 | |
953 @noindent | |
954 @var{style-options} is a whitespace separated list of words where each word | |
955 is a style, variant, weight, or stretch. The default value for all of | |
956 these is @code{normal}. | |
957 | |
958 @noindent | |
959 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
|
960 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
|
961 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
|
962 or @code{oblique}. |
49322 | 963 |
964 @noindent | |
965 A `variant' is either @code{normal} or @code{small-caps}. | |
966 Small caps is a font with the lower case characters replaced by | |
967 smaller variants of the capital characters. | |
968 | |
969 @noindent | |
970 Weight describes the ``boldness'' of a font. It corresponds to the third | |
971 part of an X font name. It is one of @code{ultra-light}, @code{light}, | |
972 @code{normal}, @code{bold}, @code{ultra-bold}, or @code{heavy}. | |
973 | |
974 @noindent | |
975 Stretch gives the width of the font relative to other designs within a | |
976 family. It corresponds to the fifth part of an X font name. It is one of | |
977 @code{ultra-condensed}, @code{extra-condensed}, @code{condensed}, | |
978 @code{semi-condensed}, @code{normal}, @code{semi-expanded}, | |
979 @code{expanded}, @code{extra-expanded}, or @code{ultra-expanded}. | |
980 | |
981 @noindent | |
982 @var{size} is a decimal number that describes the font size in points. | |
52401 | 983 |
984 @ignore | |
985 arch-tag: 9b6ff773-48b6-41f6-b2f9-f114b8bdd97f | |
986 @end ignore |