428
|
1 ! This is the app-defaults file for XEmacs.
|
|
2 !
|
|
3 ! This used to be identical to sample.Xdefaults, but the resources
|
|
4 ! below have been rewritten to be as general as possible to avoid
|
|
5 ! overriding user resources. Other than the form rewriting, both
|
|
6 ! files should be kept in sync.
|
|
7 !
|
|
8 ! The resources below are loaded into the XEmacs executable at compile-time:
|
|
9 ! changes to .../etc/Emacs.ad made after XEmacs has been built will have no
|
|
10 ! effect.
|
|
11 !
|
|
12 ! However, you may copy .../etc/Emacs.ad to /usr/lib/X11/app-defaults/Emacs
|
|
13 ! (or whatever the standard app-defaults directory is at your site) to cause
|
|
14 ! it to be consulted at run-time. (Do this only for site-wide customizations:
|
|
15 ! personal customizations should be put into ~/.Xdefaults instead.)
|
|
16 ! Note that the file must be named Emacs, not XEmacs.
|
|
17 !
|
|
18 ! See the NEWS file (C-h n) or XEmacs manual (C-h i) for a description of
|
|
19 ! the various resources and the syntax for setting them.
|
|
20 !
|
|
21 ! Energize users: note that this is not the same app-defaults file that is
|
|
22 ! used with the Energize-specific version of XEmacs.
|
|
23
|
|
24
|
|
25 ! Colors and backgrounds.
|
|
26 ! ======================
|
|
27 ! The contrasts of these colors will cause them to map to the appropriate
|
|
28 ! one of "black" or "white" on monochrome systems.
|
|
29 !
|
|
30 ! The valid color names on your system can be found by looking in the file
|
|
31 ! `rgb.txt', usually found in /usr/lib/X11/ or /usr/openwin/lib/X11/.
|
|
32
|
|
33 ! Set the modeline colors.
|
|
34 !Emacs.modeline*attributeForeground: Black
|
|
35 !Emacs.modeline*attributeBackground: Gray75
|
|
36
|
|
37 ! Set the color of the text cursor.
|
|
38 !Emacs.text-cursor*attributeBackground: Red3
|
|
39
|
|
40 ! If you want to set the color of the mouse pointer, do this:
|
|
41 ! Emacs.pointer*attributeForeground: Black
|
|
42 ! If you want to set the background of the mouse pointer, do this:
|
|
43 ! Emacs.pointer*attributeBackground: White
|
|
44 ! Note that by default, the pointer foreground and background are the same
|
|
45 ! as the default face.
|
|
46
|
|
47 ! Set the menubar colors. This overrides the default foreground and
|
|
48 ! background colors specified above.
|
|
49 *menubar*Foreground: Gray30
|
|
50 *menubar*Background: Gray80
|
|
51 ! This is for buttons in the menubar.
|
|
52 ! Yellow would be better, but that would map to white on monochrome.
|
|
53 *menubar*buttonForeground: Blue
|
|
54 *XlwMenu*highlightForeground: Red
|
|
55 *XlwMenu*titleForeground: Maroon
|
|
56 *XlwMenu*selectColor: ForestGreen
|
|
57 *XmToggleButton*selectColor: ForestGreen
|
|
58
|
|
59 ! Specify the colors of popup menus.
|
|
60 *popup*Foreground: Black
|
|
61 *popup*Background: Gray80
|
|
62
|
|
63 ! Specify the colors of the various sub-widgets of the dialog boxes.
|
|
64 *dialog*Foreground: Black
|
|
65 ! #A5C0C1 is a shade of blue
|
|
66 *dialog*Background: #A5C0C1
|
|
67 ! The following three are for Motif dialog boxes ...
|
|
68 *dialog*XmTextField*Background: WhiteSmoke
|
|
69 *dialog*XmText*Background: WhiteSmoke
|
|
70 *dialog*XmList*Background: WhiteSmoke
|
|
71 ! While this one is for Athena dialog boxes.
|
|
72 *dialog*Command*Background: WhiteSmoke
|
|
73
|
|
74 ! Xlw Scrollbar colors
|
|
75 *XlwScrollBar*Foreground: Gray30
|
|
76 *XlwScrollBar*Background: Gray80
|
|
77 *XmScrollBar*Foreground: Gray30
|
|
78 *XmScrollBar*Background: Gray80
|
|
79
|
|
80 !
|
|
81 ! The Lucid Scrollbar supports two added resources, SliderStyle is either
|
|
82 ! "plain" (default) or "dimple". Dimple puts a small dimple in the middle
|
|
83 ! of the slider that depresses when the slider is clicked on. ArrowPosition is
|
|
84 ! either "opposite" (default) or "same". Opposite puts the arrows at opposite
|
|
85 ! of the scrollbar, same puts both arrows at the same end, like the Amiga.
|
|
86 !
|
|
87 ! Emacs*XlwScrollBar.SliderStyle: dimple
|
|
88 ! Emacs*XlwScrollBar.ArrowPosition: opposite
|
|
89
|
|
90
|
|
91 !
|
|
92 ! If you want to turn off a toolbar, set its height or width to 0.
|
|
93 ! The correct size value is not really arbitrary. We only control it
|
|
94 ! this way in order to avoid excess frame resizing when turning the
|
|
95 ! toolbars on and off.
|
|
96 !
|
|
97 ! To change the heights and widths of the toolbars:
|
|
98 !
|
|
99 ! Emacs.topToolBarHeight: 37
|
|
100 ! Emacs.bottomToolBarHeight: 0
|
|
101 ! Emacs.leftToolBarWidth: 0
|
|
102 ! Emacs.rightToolBarWidth: 0
|
|
103
|
|
104 !*topToolBarShadowColor: Gray90
|
|
105 !*bottomToolBarShadowColor: Gray40
|
|
106 !*backgroundToolBarColor: Gray80
|
|
107 *toolBarShadowThickness: 2
|
|
108
|
|
109
|
|
110 ! If you want to turn off vertical scrollbars, or change the default
|
|
111 ! pixel width of the vertical scrollbars, do it like this (0 width
|
|
112 ! means no vertical scrollbars):
|
|
113 !
|
|
114 ! Emacs.scrollBarWidth: 0
|
|
115 !
|
|
116 ! To change it for a particular frame, do this:
|
|
117 !
|
|
118 ! Emacs*FRAME-NAME.scrollBarWidth: 0
|
|
119
|
|
120
|
|
121 ! If you want to turn off horizontal scrollbars, or change the default
|
|
122 ! pixel height of the horizontal scrollbars, do it like this (0 height
|
|
123 ! means no horizontal scrollbars):
|
|
124 !
|
|
125 ! Emacs.scrollBarHeight: 0
|
|
126 !
|
|
127 ! To change it for a particular frame, do this:
|
|
128 !
|
|
129 ! Emacs*FRAME-NAME.scrollBarHeight: 0
|
|
130
|
|
131
|
|
132 ! To dynamically change the labels used for menubar buttons...
|
|
133 !
|
|
134 ! Emacs*XlwMenu.resourceLabels: True
|
|
135 ! Emacs*XlwMenu.newFrame.labelString: Open Another Window
|
|
136
|
|
137 ! To have the Motif scrollbars on the left instead of the right, do this:
|
|
138 !
|
|
139 ! Emacs*scrollBarPlacement: BOTTOM_LEFT
|
|
140 !
|
|
141 ! To have the Athena scrollbars on the right, use `BOTTOM_RIGHT' instead
|
|
142
|
|
143 ! To have Motif scrollbars act more like Xt scrollbars...
|
|
144 !
|
|
145 ! Emacs*XmScrollBar.translations: #override \n\
|
|
146 ! <Btn1Down>: PageDownOrRight(0) \n\
|
|
147 ! <Btn3Down>: PageUpOrLeft(0)
|
|
148
|
|
149 ! Fonts.
|
|
150 ! ======
|
|
151 ! XEmacs requires the use of XLFD (X Logical Font Description) format font
|
|
152 ! names, which look like
|
|
153 !
|
|
154 ! *-courier-medium-r-*-*-*-120-*-*-*-*-*-*
|
|
155 !
|
|
156 ! if you use any of the other, less strict font name formats, some of which
|
|
157 ! look like
|
|
158 ! lucidasanstypewriter-12
|
|
159 ! and fixed
|
|
160 ! and 9x13
|
|
161 !
|
|
162 ! then XEmacs won't be able to guess the names of the bold and italic versions.
|
|
163 ! All X fonts can be referred to via XLFD-style names, so you should use those
|
|
164 ! forms. See the man pages for X(1), xlsfonts(1), and xfontsel(1).
|
|
165
|
|
166
|
|
167 ! The default font for the text area of XEmacs is chosen at run-time
|
|
168 ! by lisp code which tries a number of different possibilities in order
|
|
169 ! of preference. If you wish to override it, use this:
|
|
170 !
|
|
171 ! Emacs.default.attributeFont: -*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*
|
|
172
|
|
173 ! If you choose a font which does not have an italic version, you can specify
|
|
174 ! some other font to use for it here:
|
|
175 !
|
|
176 ! Emacs.italic.attributeFont: -*-courier-medium-o-*-*-*-120-*-*-*-*-iso8859-*
|
|
177 !
|
|
178 ! And here is how you would set the background color of the `highlight' face,
|
|
179 ! but only on the screen named `debugger':
|
|
180 !
|
|
181 ! Emacs*debugger.highlight.attributeBackground: PaleTurquoise
|
|
182 !
|
|
183 ! See the NEWS file (C-h n) for a more complete description of the resource
|
|
184 ! syntax of faces.
|
|
185
|
|
186
|
|
187 ! Font of the modeline, menubar and pop-up menus.
|
|
188 ! Note that the menubar resources do not use the `face' syntax, since they
|
|
189 ! are X toolkit widgets and thus outside the domain of XEmacs proper.
|
|
190 !
|
|
191 *menubar*Font: -*-helvetica-bold-r-*-*-*-120-*-*-*-*-iso8859-*
|
|
192 *popup*Font: -*-helvetica-bold-r-*-*-*-120-*-*-*-*-iso8859-*
|
|
193
|
|
194 ! Font in the Motif dialog boxes.
|
|
195 ! (Motif uses `fontList' while most other things use `font' - if you don't
|
|
196 ! know why you probably don't want to.)
|
|
197 !
|
|
198 *XmDialogShell*FontList: -*-helvetica-bold-r-*-*-*-120-*-*-*-*-iso8859-*
|
|
199 *XmTextField*FontList: -*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*
|
|
200 *XmText*FontList: -*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*
|
|
201 *XmList*FontList: -*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*
|
|
202
|
|
203 ! Font in the Athena dialog boxes.
|
|
204 ! I think 14-point looks nicer than 12-point.
|
|
205 ! Some people use 12-point anyway because you get more text, but
|
|
206 ! there's no purpose at all in doing this for dialog boxes.
|
|
207
|
|
208 *Dialog*Font: -*-helvetica-bold-r-*-*-*-140-*-*-*-*-iso8859-*
|
|
209
|
|
210 ! Dialog box translations.
|
|
211 ! =======================
|
|
212
|
|
213 ! This accelerator binds <return> in a dialog box to <activate> on button1
|
|
214 *dialog*button1.accelerators:#override\
|
|
215 <KeyPress>Return: ArmAndActivate()\n\
|
|
216 <KeyPress>KP_Enter: ArmAndActivate()\n\
|
|
217 Ctrl<KeyPress>m: ArmAndActivate()\n
|
|
218
|
|
219 ! Translations to make the TextField widget behave more like XEmacs
|
|
220 *XmTextField*translations: #override\n\
|
|
221 !<Key>osfBackSpace: delete-previous-character()\n\
|
|
222 !<Key>osfDelete: delete-previous-character()\n\
|
|
223 !Ctrl<Key>h: delete-previous-character()\n\
|
|
224 !Ctrl<Key>d: delete-next-character()\n\
|
|
225 !Meta<Key>osfDelete: delete-previous-word()\n\
|
|
226 !Meta<Key>osfBackSpace: delete-previous-word()\n\
|
|
227 !Meta<Key>d: delete-next-word()\n\
|
|
228 !Ctrl<Key>k: delete-to-end-of-line()\n\
|
|
229 !Ctrl<Key>g: process-cancel()\n\
|
|
230 !Ctrl<Key>b: backward-character()\n\
|
|
231 !<Key>osfLeft: backward-character()\n\
|
|
232 !Ctrl<Key>f: forward-character()\n\
|
|
233 !<Key>osfRight: forward-character()\n\
|
|
234 !Meta<Key>b: backward-word()\n\
|
|
235 !Meta<Key>osfLeft: backward-word()\n\
|
|
236 !Meta<Key>f: forward-word()\n\
|
|
237 !Meta<Key>osfRight: forward-word()\n\
|
|
238 !Ctrl<Key>e: end-of-line()\n\
|
|
239 !Ctrl<Key>a: beginning-of-line()\n\
|
|
240 !Ctrl<Key>w: cut-clipboard()\n\
|
|
241 !Meta<Key>w: copy-clipboard()\n\
|
|
242 <Btn2Up>: copy-primary()\n
|
|
243
|
|
244 ! With the XEmacs typeahead it's better to not have space be bound to
|
|
245 ! ArmAndActivate() for buttons that appear in dialog boxes. This is
|
|
246 ! not 100% Motif compliant but the benefits far outweight the
|
|
247 ! compliancy problem.
|
|
248 *dialog*XmPushButton*translations:#override\n\
|
|
249 <Btn1Down>: Arm()\n\
|
|
250 <Btn1Down>,<Btn1Up>: Activate()\
|
|
251 Disarm()\n\
|
|
252 <Btn1Down>(2+): MultiArm()\n\
|
|
253 <Btn1Up>(2+): MultiActivate()\n\
|
|
254 <Btn1Up>: Activate()\
|
|
255 Disarm()\n\
|
|
256 <Key>osfSelect: ArmAndActivate()\n\
|
|
257 <Key>osfActivate: ArmAndActivate()\n\
|
|
258 <Key>osfHelp: Help()\n\
|
|
259 ~Shift ~Meta ~Alt <Key>Return: ArmAndActivate()\n\
|
|
260 <EnterWindow>: Enter()\n\
|
|
261 <LeaveWindow>: Leave()\n
|
|
262
|
|
263 ! XIM input method style
|
|
264 ! =======================
|
|
265
|
|
266 ! ximStyles is a (whitespace or comma-separated) list of XIMStyles in
|
|
267 ! order of user's preference.
|
|
268 ! Choose a subset of the following styles or reorder to taste
|
|
269 *ximStyles: XIMPreeditPosition|XIMStatusArea\
|
|
270 XIMPreeditPosition|XIMStatusNothing\
|
|
271 XIMPreeditPosition|XIMStatusNone\
|
|
272 XIMPreeditNothing|XIMStatusArea\
|
|
273 XIMPreeditNothing|XIMStatusNothing\
|
|
274 XIMPreeditNothing|XIMStatusNone\
|
|
275 XIMPreeditNone|XIMStatusArea\
|
|
276 XIMPreeditNone|XIMStatusNothing\
|
|
277 XIMPreeditNone|XIMStatusNone
|
|
278
|
|
279 ! XIM Preedit and Status foreground and background
|
|
280 *EmacsFrame.ximForeground: black
|
|
281 *EmacsFrame.ximBackground: white
|
|
282
|
|
283 ! XIM fontset (defaults to system fontset default)
|
|
284 ! *EmacsFrame.FontSet: -dt-interface user-medium-r-normal-s*-*-*-*-*-*-*-*-*
|