Mercurial > hg > xemacs-beta
comparison etc/Emacs.ad @ 0:376386a54a3c r19-14
Import from CVS: tag r19-14
author | cvs |
---|---|
date | Mon, 13 Aug 2007 08:45:50 +0200 |
parents | |
children | 441bb1e64a06 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:376386a54a3c |
---|---|
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: Gray75 | |
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*selectColor: ForestGreen | |
55 *XmToggleButton*selectColor: ForestGreen | |
56 | |
57 ! Specify the colors of popup menus. | |
58 *popup*Foreground: Black | |
59 *popup*Background: Gray75 | |
60 | |
61 ! Specify the colors of the various sub-widgets of the dialog boxes. | |
62 *dialog*Foreground: Black | |
63 ! #A5C0C1 is a shade of blue | |
64 *dialog*Background: #A5C0C1 | |
65 ! The following three are for Motif dialog boxes ... | |
66 *dialog*XmTextField*Background: WhiteSmoke | |
67 *dialog*XmText*Background: WhiteSmoke | |
68 *dialog*XmList*Background: WhiteSmoke | |
69 ! While this one is for Athena dialog boxes. | |
70 *dialog*Command*Background: WhiteSmoke | |
71 | |
72 ! Xlw Scrollbar colors | |
73 *XlwScrollBar*Foreground: Gray30 | |
74 *XlwScrollBar*Background: Gray75 | |
75 *XmScrollBar*Foreground: Gray30 | |
76 *XmScrollBar*Background: Gray75 | |
77 | |
78 ! | |
79 ! The Lucid Scrollbar supports two added resources, KnobStyle is either | |
80 ! "plain" (default) or "dimple". Dimple puts a small dimple in the middle | |
81 ! of the knob that depresses when the knob is clicked on. ArrowPosition is | |
82 ! either "opposite" (default) or "same". Opposite puts the arrows at opposite | |
83 ! of the scrollbar, same puts both arrows at the same end, like the Amiga. | |
84 ! | |
85 ! Emacs*XlwScrollBar.KnobStyle: dimple | |
86 ! Emacs*XlwScrollBar.ArrowPosition: opposite | |
87 | |
88 | |
89 ! | |
90 ! If you want to turn off a toolbar, set its height or width to 0. | |
91 ! The correct size value is not really arbitrary. We only control it | |
92 ! this way in order to avoid excess frame resizing when turning the | |
93 ! toolbars on and off. | |
94 ! | |
95 ! To change the heights and widths of the toolbars: | |
96 ! | |
97 ! Emacs.topToolBarHeight: 37 | |
98 ! Emacs.bottomToolBarHeight: 0 | |
99 ! Emacs.leftToolBarWidth: 0 | |
100 ! Emacs.rightToolBarWidth: 0 | |
101 | |
102 *topToolBarShadowColor: Gray90 | |
103 *bottomToolBarShadowColor: Gray40 | |
104 *backgroundToolBarColor: Gray75 | |
105 *toolBarShadowThickness: 2 | |
106 | |
107 | |
108 ! If you want to turn off vertical scrollbars, or change the default | |
109 ! pixel width of the vertical scrollbars, do it like this (0 width | |
110 ! means no vertical scrollbars): | |
111 ! | |
112 ! Emacs.scrollBarWidth: 0 | |
113 ! | |
114 ! To change it for a particular frame, do this: | |
115 ! | |
116 ! Emacs*FRAME-NAME.scrollBarWidth: 0 | |
117 | |
118 | |
119 ! If you want to turn off horizontal scrollbars, or change the default | |
120 ! pixel height of the horizontal scrollbars, do it like this (0 height | |
121 ! means no horizontal scrollbars): | |
122 ! | |
123 ! Emacs.scrollBarHeight: 0 | |
124 ! | |
125 ! To change it for a particular frame, do this: | |
126 ! | |
127 ! Emacs*FRAME-NAME.scrollBarHeight: 0 | |
128 | |
129 | |
130 ! To dynamically change the labels used for menubar buttons... | |
131 ! | |
132 ! Emacs*XlwMenu.resourceLabels: True | |
133 ! Emacs*XlwMenu.newFrame.labelString: Open Another Window | |
134 | |
135 ! To have the Motif scrollbars on the left instead of the right, do this: | |
136 ! | |
137 ! Emacs*scrollBarPlacement: BOTTOM_LEFT | |
138 ! | |
139 ! To have the Athena scrollbars on the right, use `BOTTOM_RIGHT' instead | |
140 | |
141 ! To have Motif scrollbars act more like Xt scrollbars... | |
142 ! | |
143 ! Emacs*XmScrollBar.translations: #override \n\ | |
144 ! <Btn1Down>: PageDownOrRight(0) \n\ | |
145 ! <Btn3Down>: PageUpOrLeft(0) | |
146 | |
147 ! Fonts. | |
148 ! ====== | |
149 ! XEmacs requires the use of XLFD (X Logical Font Description) format font | |
150 ! names, which look like | |
151 ! | |
152 ! *-courier-medium-r-*-*-*-120-*-*-*-*-*-* | |
153 ! | |
154 ! if you use any of the other, less strict font name formats, some of which | |
155 ! look like | |
156 ! lucidasanstypewriter-12 | |
157 ! and fixed | |
158 ! and 9x13 | |
159 ! | |
160 ! then XEmacs won't be able to guess the names of the bold and italic versions. | |
161 ! All X fonts can be referred to via XLFD-style names, so you should use those | |
162 ! forms. See the man pages for X(1), xlsfonts(1), and xfontsel(1). | |
163 | |
164 | |
165 ! The default font for the text area of XEmacs is chosen at run-time | |
166 ! by lisp code which tries a number of different possibilities in order | |
167 ! of preference. If you wish to override it, use this: | |
168 ! | |
169 ! Emacs.default.attributeFont: -*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-* | |
170 | |
171 ! If you choose a font which does not have an italic version, you can specify | |
172 ! some other font to use for it here: | |
173 ! | |
174 ! Emacs.italic.attributeFont: -*-courier-medium-o-*-*-*-120-*-*-*-*-iso8859-* | |
175 ! | |
176 ! And here is how you would set the background color of the `highlight' face, | |
177 ! but only on the screen named `debugger': | |
178 ! | |
179 ! Emacs*debugger.highlight.attributeBackground: PaleTurquoise | |
180 ! | |
181 ! See the NEWS file (C-h n) for a more complete description of the resource | |
182 ! syntax of faces. | |
183 | |
184 | |
185 ! Font of the modeline, menubar and pop-up menus. | |
186 ! Note that the menubar resources do not use the `face' syntax, since they | |
187 ! are X toolkit widgets and thus outside the domain of XEmacs proper. | |
188 ! | |
189 *menubar*Font: -*-helvetica-bold-r-*-*-*-120-*-*-*-*-iso8859-* | |
190 *popup*Font: -*-helvetica-bold-r-*-*-*-120-*-*-*-*-iso8859-* | |
191 | |
192 ! Font in the Motif dialog boxes. | |
193 ! (Motif uses `fontList' while most other things use `font' - if you don't | |
194 ! know why you probably don't want to.) | |
195 ! | |
196 *XmDialogShell*FontList: -*-helvetica-bold-r-*-*-*-120-*-*-*-*-iso8859-* | |
197 *XmTextField*FontList: -*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-* | |
198 *XmText*FontList: -*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-* | |
199 *XmList*FontList: -*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-* | |
200 | |
201 ! Font in the Athena dialog boxes. | |
202 ! I think 14-point looks nicer than 12-point. | |
203 ! Some people use 12-point anyway because you get more text, but | |
204 ! there's no purpose at all in doing this for dialog boxes. | |
205 | |
206 *Dialog*Font: -*-helvetica-bold-r-*-*-*-140-*-*-*-*-iso8859-* | |
207 | |
208 ! Dialog box translations. | |
209 ! ======================= | |
210 | |
211 ! This accelerator binds <return> in a dialog box to <activate> on button1 | |
212 *dialog*button1.accelerators:#override\ | |
213 <KeyPress>Return: ArmAndActivate()\n\ | |
214 <KeyPress>KP_Enter: ArmAndActivate()\n\ | |
215 Ctrl<KeyPress>m: ArmAndActivate()\n | |
216 | |
217 ! Translations to make the TextField widget behave more like XEmacs | |
218 *XmTextField*translations: #override\n\ | |
219 !<Key>osfBackSpace: delete-previous-character()\n\ | |
220 !<Key>osfDelete: delete-previous-character()\n\ | |
221 !Ctrl<Key>h: delete-previous-character()\n\ | |
222 !Ctrl<Key>d: delete-next-character()\n\ | |
223 !Meta<Key>osfDelete: delete-previous-word()\n\ | |
224 !Meta<Key>osfBackSpace: delete-previous-word()\n\ | |
225 !Meta<Key>d: delete-next-word()\n\ | |
226 !Ctrl<Key>k: delete-to-end-of-line()\n\ | |
227 !Ctrl<Key>g: process-cancel()\n\ | |
228 !Ctrl<Key>b: backward-character()\n\ | |
229 !<Key>osfLeft: backward-character()\n\ | |
230 !Ctrl<Key>f: forward-character()\n\ | |
231 !<Key>osfRight: forward-character()\n\ | |
232 !Meta<Key>b: backward-word()\n\ | |
233 !Meta<Key>osfLeft: backward-word()\n\ | |
234 !Meta<Key>f: forward-word()\n\ | |
235 !Meta<Key>osfRight: forward-word()\n\ | |
236 !Ctrl<Key>e: end-of-line()\n\ | |
237 !Ctrl<Key>a: beginning-of-line()\n\ | |
238 !Ctrl<Key>w: cut-clipboard()\n\ | |
239 !Meta<Key>w: copy-clipboard()\n\ | |
240 <Btn2Up>: copy-primary()\n | |
241 | |
242 ! With the XEmacs typeahead it's better to not have space be bound to | |
243 ! ArmAndActivate() for buttons that appear in dialog boxes. This is | |
244 ! not 100% Motif compliant but the benefits far outweight the | |
245 ! compliancy problem. | |
246 *dialog*XmPushButton*translations:#override\n\ | |
247 <Btn1Down>: Arm()\n\ | |
248 <Btn1Down>,<Btn1Up>: Activate()\ | |
249 Disarm()\n\ | |
250 <Btn1Down>(2+): MultiArm()\n\ | |
251 <Btn1Up>(2+): MultiActivate()\n\ | |
252 <Btn1Up>: Activate()\ | |
253 Disarm()\n\ | |
254 <Key>osfSelect: ArmAndActivate()\n\ | |
255 <Key>osfActivate: ArmAndActivate()\n\ | |
256 <Key>osfHelp: Help()\n\ | |
257 ~Shift ~Meta ~Alt <Key>Return: ArmAndActivate()\n\ | |
258 <EnterWindow>: Enter()\n\ | |
259 <LeaveWindow>: Leave()\n | |
260 |