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