Mercurial > emacs
annotate man/xresources.texi @ 42741:c0e215735c5a
*** empty log message ***
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Mon, 14 Jan 2002 13:01:14 +0000 |
parents | fcbd88e4e54e |
children | 0aa2696d5de7 |
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. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
2 @c Copyright (C) 1987,93,94,95,1997,2001 Free Software Foundation, Inc. |
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. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
4 @node X Resources, Antinews, Command Arguments, 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 |
6a9bede30a62
Move some of the nodes back to cmdargs.texi--they actually describe options.
Richard M. Stallman <rms@gnu.org>
parents:
40765
diff
changeset
|
8 resources, as is usual for programs that use X. X resources are 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
|
9 only way to customize tooltip windows and LessTif menus, since 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
|
10 libraries that implement them don't provide for customization through |
6a9bede30a62
Move some of the nodes back to cmdargs.texi--they actually describe options.
Richard M. Stallman <rms@gnu.org>
parents:
40765
diff
changeset
|
11 Emacs. This appendix describes the X resources that Emacs recognizes |
6a9bede30a62
Move some of the nodes back to cmdargs.texi--they actually describe options.
Richard M. Stallman <rms@gnu.org>
parents:
40765
diff
changeset
|
12 and how to use them. |
40591 | 13 |
14 @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
|
15 * 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
|
16 * 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
|
17 * Face Resources:: X resources for customizing faces. |
40591 | 18 * Lucid Resources:: X resources for Lucid menus. |
19 * LessTif Resources:: X resources for LessTif and Motif menus. | |
20 @end menu | |
21 | |
41373
11a1b4e2b45a
Fix node names and cross-references.
Eli Zaretskii <eliz@gnu.org>
parents:
41368
diff
changeset
|
22 @node Resources |
40523
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
23 @appendixsec X Resources |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
24 @cindex resources |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
25 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
26 @cindex X resources, @file{~/.Xdefaults} file |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
27 Programs running under the X Window System organize their user options |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
28 under a hierarchy of classes and resources. You can specify default |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
29 values for these options in your X resources file, usually named |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
30 @file{~/.Xdefaults}. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
31 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
32 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
|
33 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
|
34 (optionally even for all programs). |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
35 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
36 @cindex Registry (MS-Windows) |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
37 @cindex @file{.Xdefaults} file, and MS-Windows |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
38 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
|
39 Emacs compiled for Windows looks for X resources in the Windows |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
40 Registry, under the keys @samp{HKEY_CURRENT_USER\SOFTWARE\GNU\Emacs} |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
41 and @samp{HKEY_LOCAL_MACHINE\SOFTWARE\GNU\Emacs}. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
42 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
43 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
|
44 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
|
45 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
|
46 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
|
47 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
|
48 @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
|
49 names. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
50 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
51 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
|
52 on one line, like this: |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
53 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
54 @example |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
55 emacs.borderWidth: 2 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
56 @end example |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
57 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
58 @noindent |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
59 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
|
60 in that class. Here's an example: |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
61 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
62 @example |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
63 emacs.BorderWidth: 2 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
64 @end example |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
65 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
66 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
|
67 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
|
68 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
|
69 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
|
70 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
|
71 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
72 @example |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
73 emacs.BorderWidth: 2 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
74 emacs.borderWidth: 4 |
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 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
|
78 Also, command-line options always override the X resources file. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
79 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
80 The string @samp{emacs} in the examples above is also a resource |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
81 name. It actually represents the name of the executable file that you |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
82 invoke to run Emacs. If Emacs is installed under a different name, it |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
83 looks for resources under that name instead of @samp{emacs}. |
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 @table @samp |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
86 @item -name @var{name} |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
87 @opindex --name |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
88 @itemx --name=@var{name} |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
89 @cindex resource name, command-line argument |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
90 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
|
91 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
|
92 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
|
93 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
94 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
|
95 executable's name as the resource name. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
96 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
97 @item -xrm @var{resource-values} |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
98 @opindex --xrm |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
99 @itemx --xrm=@var{resource-values} |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
100 @cindex resource values, command-line argument |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
101 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
|
102 @end table |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
103 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
104 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
|
105 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
|
106 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
107 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
|
108 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
|
109 @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
|
110 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
|
111 file. Here is an example: |
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 @example |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
114 Emacs.BorderWidth: 2 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
115 Emacs.borderWidth: 4 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
116 @end example |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
117 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
118 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
|
119 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
|
120 @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
|
121 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
|
122 @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
|
123 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
|
124 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
|
125 take precedence over all other resource specifications. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
126 |
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
|
127 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
|
128 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
|
129 @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
|
130 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
|
131 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
|
132 @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
|
133 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
|
134 Changes take effect immediately if you click on the @samp{Apply} button. |
6a9bede30a62
Move some of the nodes back to cmdargs.texi--they actually describe options.
Richard M. Stallman <rms@gnu.org>
parents:
40765
diff
changeset
|
135 |
6a9bede30a62
Move some of the nodes back to cmdargs.texi--they actually describe options.
Richard M. Stallman <rms@gnu.org>
parents:
40765
diff
changeset
|
136 @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
|
137 @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
|
138 |
6a9bede30a62
Move some of the nodes back to cmdargs.texi--they actually describe options.
Richard M. Stallman <rms@gnu.org>
parents:
40765
diff
changeset
|
139 This table lists the resource names that designate options for |
6a9bede30a62
Move some of the nodes back to cmdargs.texi--they actually describe options.
Richard M. Stallman <rms@gnu.org>
parents:
40765
diff
changeset
|
140 Emacs, each with the class that it belongs to: |
40523
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
141 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
142 @table @asis |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
143 @item @code{background} (class @code{Background}) |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
144 Background color name. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
145 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
146 @item @code{bitmapIcon} (class @code{BitmapIcon}) |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
147 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
|
148 manager choose an icon if @samp{off}. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
149 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
150 @item @code{borderColor} (class @code{BorderColor}) |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
151 Color name for the external border. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
152 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
153 @item @code{borderWidth} (class @code{BorderWidth}) |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
154 Width in pixels of the external border. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
155 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
156 @item @code{cursorColor} (class @code{Foreground}) |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
157 Color name for text cursor (point). |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
158 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
159 @item @code{font} (class @code{Font}) |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
160 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
|
161 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
162 @item @code{foreground} (class @code{Foreground}) |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
163 Color name for text. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
164 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
165 @item @code{geometry} (class @code{Geometry}) |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
166 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
|
167 @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
|
168 as the Emacs frame itself. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
169 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
170 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
|
171 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
|
172 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
|
173 all frames. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
174 |
42714
59c4dd0ca0e8
(Table of Resources): Document the new fullscreen resource.
Eli Zaretskii <eliz@gnu.org>
parents:
41373
diff
changeset
|
175 @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
|
176 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
|
177 @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
|
178 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
|
179 (@pxref{Window Size X}). |
42714
59c4dd0ca0e8
(Table of Resources): Document the new fullscreen resource.
Eli Zaretskii <eliz@gnu.org>
parents:
41373
diff
changeset
|
180 |
59c4dd0ca0e8
(Table of Resources): Document the new fullscreen resource.
Eli Zaretskii <eliz@gnu.org>
parents:
41373
diff
changeset
|
181 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
|
182 one. |
59c4dd0ca0e8
(Table of Resources): Document the new fullscreen resource.
Eli Zaretskii <eliz@gnu.org>
parents:
41373
diff
changeset
|
183 |
40523
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
184 @item @code{iconName} (class @code{Title}) |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
185 Name to display in the icon. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
186 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
187 @item @code{internalBorder} (class @code{BorderWidth}) |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
188 Width in pixels of the internal border. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
189 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
190 @item @code{lineSpacing} (class @code{LineSpacing}) |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
191 @cindex line spacing |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
192 @cindex leading |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
193 Additional space (@dfn{leading}) between lines, in pixels. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
194 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
195 @item @code{menuBar} (class @code{MenuBar}) |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
196 Give frames menu bars if @samp{on}; don't have menu bars if @samp{off}. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
197 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
198 @item @code{toolBar} (class @code{ToolBar}) |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
199 Number of lines to reserve for the tool bar. A zero value suppresses |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
200 the tool bar. If the value is non-zero and |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
201 @code{auto-resize-tool-bars} is non-@code{nil}, the tool bar's size |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
202 will be changed automatically so that all tool bar items are visible. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
203 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
204 @item @code{minibuffer} (class @code{Minibuffer}) |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
205 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
|
206 It will use a separate minibuffer frame instead. |
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{paneFont} (class @code{Font}) |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
209 @cindex font for menus |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
210 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
|
211 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
212 @item @code{pointerColor} (class @code{Foreground}) |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
213 Color of the mouse cursor. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
214 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
215 @ignore |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
216 @item @code{privateColormap} (class @code{PrivateColormap}) |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
217 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
|
218 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
|
219 @end ignore |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
220 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
221 @item @code{reverseVideo} (class @code{ReverseVideo}) |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
222 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
|
223 specified if @samp{off}. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
224 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
225 @item @code{screenGamma} (class @code{ScreenGamma}) |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
226 @cindex gamma correction |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
227 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
|
228 @code{screen-gamma}. |
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{selectionFont} (class @code{Font}) |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
231 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
|
232 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
|
233 Resources}.) |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
234 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
235 @item @code{synchronous} (class @code{Synchronous}) |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
236 @cindex debugging X problems |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
237 @cindex synchronous X mode |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
238 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
|
239 useful for debugging X problems. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
240 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
241 @item @code{title} (class @code{Title}) |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
242 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
|
243 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
244 @item @code{verticalScrollBars} (class @code{ScrollBars}) |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
245 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
|
246 @samp{off}. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
247 @end table |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
248 |
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
|
249 @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
|
250 @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
|
251 |
6a9bede30a62
Move some of the nodes back to cmdargs.texi--they actually describe options.
Richard M. Stallman <rms@gnu.org>
parents:
40765
diff
changeset
|
252 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
|
253 faces (@pxref{Faces}): |
40523
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
254 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
255 @table @code |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
256 @item @var{face}.attributeFont |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
257 Font for face @var{face}. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
258 @item @var{face}.attributeForeground |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
259 Foreground color for face @var{face}. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
260 @item @var{face}.attributeBackground |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
261 Background color for face @var{face}. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
262 @item @var{face}.attributeUnderline |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
263 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
|
264 yes. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
265 @item @var{face}.attributeFamily |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
266 Font family for face @var{face}. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
267 @item @var{face}.attributeWidth |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
268 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
|
269 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
|
270 @code{condensed}, @code{semi-condensed}, @code{normal}, |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
271 @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
|
272 @code{ultra-expanded}. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
273 @item @var{face}.attributeHeight |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
274 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
|
275 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
|
276 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
|
277 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
|
278 will return a new height. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
279 @item @var{face}.attributeWeight |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
280 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
|
281 @code{ultra-bold}, @code{extra-bold}, @code{bold}, |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
282 @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
|
283 @code{extra-light}, @code{ultra-light}. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
284 @item @var{face}.attributeSlant |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
285 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
|
286 @code{italic}, @code{oblique}, @code{normal}, |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
287 @code{reverse-italic}, or @code{reverse-oblique}. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
288 @item @var{face}.attributeStrikeThrough |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
289 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
|
290 through the characters. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
291 @item @var{face}.attributeOverline |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
292 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
|
293 @item @var{face}.attributeBox |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
294 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
|
295 @item @var{face}.attributeInverse |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
296 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
|
297 video. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
298 @item @var{face}.attributeStipple |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
299 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
|
300 @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
|
301 @item @var{face}.attributeBackgroundPixmap |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
302 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
|
303 pixmap file or @code{false}. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
304 @item @var{face}.attributeBold |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
305 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
|
306 @item @var{face}.attributeItalic |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
307 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
|
308 @end table |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
309 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
310 @node Lucid Resources |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
311 @appendixsec Lucid Menu X Resources |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
312 @cindex Menu X Resources (Lucid widgets) |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
313 @cindex Lucid Widget X Resources |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
314 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
315 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
|
316 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
|
317 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
|
318 (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
|
319 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
|
320 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
321 @example |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
322 Emacs.pane.menubar.@var{resource}: @var{value} |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
323 @end example |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
324 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
325 @noindent |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
326 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
|
327 write this: |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
328 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
329 @example |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
330 Emacs.pane.menubar.font: 8x16 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
331 @end example |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
332 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
333 @noindent |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
334 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
|
335 @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
|
336 @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
|
337 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
338 @example |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
339 Emacs.menu*.font: 8x16 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
340 @end example |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
341 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
342 @noindent |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
343 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
|
344 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
345 @example |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
346 Emacs.dialog*.font: 8x16 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
347 @end example |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
348 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
349 @noindent |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
350 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
|
351 @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
|
352 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
|
353 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
354 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
|
355 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
356 @table @code |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
357 @item font |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
358 Font for menu item text. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
359 @item foreground |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
360 Color of the foreground. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
361 @item background |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
362 Color of the background. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
363 @item buttonForeground |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
364 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
|
365 @item horizontalSpacing |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
366 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
|
367 @item verticalSpacing |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
368 Vertical spacing in pixels between items. Default is 1. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
369 @item arrowSpacing |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
370 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
|
371 the associated text. Default is 10. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
372 @item shadowThickness |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
373 Thickness of shadow line around the widget. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
374 @item margin |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
375 The margin of the menu bar, in characters. The default of 4 makes the |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
376 menu bar appear like the LessTif/Motif one. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
377 @end table |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
378 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
379 @node LessTif Resources |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
380 @appendixsec LessTif Menu X Resources |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
381 @cindex Menu X Resources (LessTif widgets) |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
382 @cindex LessTif Widget X Resources |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
383 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
384 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
|
385 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
|
386 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
|
387 widgets and have their own resources. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
388 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
389 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
|
390 (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
|
391 @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
|
392 like this: |
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 @smallexample |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
395 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
|
396 @end smallexample |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
397 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
398 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
|
399 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
|
400 @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
|
401 @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
|
402 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
|
403 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
|
404 @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
|
405 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
406 @smallexample |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
407 Emacs.pane.menubar.*.fontList: 8x16 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
408 @end smallexample |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
409 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
410 @noindent |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
411 This also specifies the resource value for submenus. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
412 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
413 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
|
414 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
|
415 @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
|
416 item looks like this: |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
417 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
418 @smallexample |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
419 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
|
420 @end smallexample |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
421 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
422 @noindent |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
423 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
|
424 buffer)} item: |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
425 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
426 @smallexample |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
427 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
|
428 @end smallexample |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
429 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
430 @noindent |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
431 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
|
432 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
|
433 template: |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
434 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
435 @smallexample |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
436 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
|
437 @end smallexample |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
438 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
439 @noindent |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
440 For example, |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
441 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
442 @smallexample |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
443 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
|
444 @end smallexample |
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 @noindent |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
447 (This should be one long line.) |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
448 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
449 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
|
450 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
|
451 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
|
452 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
|
453 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
|
454 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
455 @smallexample |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
456 Emacs.pane.menubar.*.fontList: 8x16 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
457 Emacs.pane.menubar.popup_*.fontList: 8x16 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
458 @end smallexample |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
459 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
460 @noindent |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
461 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
|
462 @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
|
463 the pop-up menu items, write this: |
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 @smallexample |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
466 Emacs.menu*.fontList: 8x16 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
467 @end smallexample |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
468 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
469 @noindent |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
470 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
|
471 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
472 @example |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
473 Emacs.dialog*.fontList: 8x16 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
474 Emacs.dialog*.foreground: hotpink |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
475 @end example |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
476 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
477 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
|
478 @samp{fsb*}, like this: |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
479 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
480 @example |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
481 Emacs.fsb*.fontList: 8x16 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
482 @end example |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
483 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
484 @iftex |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
485 @medbreak |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
486 @end iftex |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
487 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
|
488 pop-up menus: |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
489 |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
490 @table @code |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
491 @item armColor |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
492 The color to show in an armed button. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
493 @item fontList |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
494 The font to use. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
495 @item marginBottom |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
496 @itemx marginHeight |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
497 @itemx marginLeft |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
498 @itemx marginRight |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
499 @itemx marginTop |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
500 @itemx marginWidth |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
501 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
|
502 @item borderWidth |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
503 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
|
504 @item shadowThickness |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
505 The width of the border shadow. |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
506 @item bottomShadowColor |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
507 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
|
508 @item topShadowColor |
198cafe77e0f
Text broken out from cmdargs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
diff
changeset
|
509 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
|
510 @end table |