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