author | Claus Gittinger <cg@exept.de> |
Tue, 06 Jul 1999 17:16:07 +0200 | |
changeset 368 | e998b6392d10 |
parent 361 | 2e93bfb4a8b2 |
child 386 | 5be25f341b4f |
permissions | -rw-r--r-- |
4 | 1 |
"* |
2 |
* $Header$ |
|
3 |
* |
|
209 | 4 |
* ST/X startup configuration & command file: |
5 |
* |
|
4 | 6 |
* sample private.rc - file |
7 |
* |
|
52 | 8 |
* a copy of this file can (should) reside in $home/.smalltalk/private.rc or |
9 |
* in the current directory - put all private preferences in here. |
|
41 | 10 |
* |
11 |
* |
|
25 | 12 |
* notice, you will find some things enclosed in |
143
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
13 |
* ... claus ifTrue:[ |
25 | 14 |
* |
143
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
15 |
* these are my personal preferences which will be |
25 | 16 |
* ignored in your environment, but are taken in mine. |
17 |
* That way, I dont have to maintain two different 'private.rc' files. |
|
143
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
18 |
* (you may want to have a look into it - some is of general interest) |
4 | 19 |
*" |
20 |
||
25 | 21 |
"/ |
198
7bbdd3d72cea
oops - dont set the codeLimit to 64k on all machines
Claus Gittinger <cg@exept.de>
parents:
195
diff
changeset
|
22 |
"/ you may limit the amount of memory allocated to |
7bbdd3d72cea
oops - dont set the codeLimit to 64k on all machines
Claus Gittinger <cg@exept.de>
parents:
195
diff
changeset
|
23 |
"/ dynamic compiled code ... |
204 | 24 |
"/ The default is unlimited; |
25 |
"/ If you run in a multiuser environment, or |
|
26 |
"/ short on swapSpace, a good limit is some 0.5 to 1Mb. |
|
198
7bbdd3d72cea
oops - dont set the codeLimit to 64k on all machines
Claus Gittinger <cg@exept.de>
parents:
195
diff
changeset
|
27 |
"/ |
7bbdd3d72cea
oops - dont set the codeLimit to 64k on all machines
Claus Gittinger <cg@exept.de>
parents:
195
diff
changeset
|
28 |
|
318 | 29 |
"/ ObjectMemory dynamicCodeLimit:500000. |
167 | 30 |
|
31 |
"/ |
|
318 | 32 |
"/ If local sources should have preference over source code management |
33 |
"/ (only useful, if you have the full version (including sourceCode mgmnt), |
|
34 |
"/ and CVS access is slow. |
|
143
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
35 |
"/ |
318 | 36 |
"/ Class tryLocalSourceFirst:true. |
143
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
37 |
|
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
38 |
"/ |
25 | 39 |
"/ this turns off error/fatal messages from the VM |
40 |
"/ (it does not really make sense to turn them off) |
|
41 |
"/ |
|
42 |
"/ Smalltalk debugPrinting:false. |
|
43 |
||
44 |
"/ |
|
45 |
"/ set the package for fileIns done below |
|
46 |
"/ |
|
24 | 47 |
Project notNil ifTrue:[ |
48 |
Project setDefaultProject. |
|
25 | 49 |
Project current packageName:#'goody-fileIn'. |
24 | 50 |
]. |
51 |
! |
|
52 |
||
331
a0be330a1f43
moved compiler setup into host-specific file.
Claus Gittinger <cg@exept.de>
parents:
326
diff
changeset
|
53 |
|whoAmI domain thisIsMySystem thisIsExeptsDomain conf systemType incDir includes| |
91 | 54 |
|
279
289856108844
renamed mswindows3.style to mswindows95.style
Claus Gittinger <cg@exept.de>
parents:
275
diff
changeset
|
55 |
whoAmI := OperatingSystem getLoginName. |
289856108844
renamed mswindows3.style to mswindows95.style
Claus Gittinger <cg@exept.de>
parents:
275
diff
changeset
|
56 |
domain := OperatingSystem getDomainName. |
331
a0be330a1f43
moved compiler setup into host-specific file.
Claus Gittinger <cg@exept.de>
parents:
326
diff
changeset
|
57 |
thisIsExeptsDomain := (domain = 'exept.de'). |
a0be330a1f43
moved compiler setup into host-specific file.
Claus Gittinger <cg@exept.de>
parents:
326
diff
changeset
|
58 |
thisIsMySystem := (whoAmI = 'claus' or:[whoAmI = 'cg']) and:[thisIsExeptsDomain]. |
279
289856108844
renamed mswindows3.style to mswindows95.style
Claus Gittinger <cg@exept.de>
parents:
275
diff
changeset
|
59 |
|
26 | 60 |
"/ |
61 |
"/ no matter what the 'display.rc' says: |
|
62 |
"/ I want my #iris style ... |
|
331
a0be330a1f43
moved compiler setup into host-specific file.
Claus Gittinger <cg@exept.de>
parents:
326
diff
changeset
|
63 |
"/ except for win systems, where I use the win95 style |
26 | 64 |
"/ |
279
289856108844
renamed mswindows3.style to mswindows95.style
Claus Gittinger <cg@exept.de>
parents:
275
diff
changeset
|
65 |
|
289856108844
renamed mswindows3.style to mswindows95.style
Claus Gittinger <cg@exept.de>
parents:
275
diff
changeset
|
66 |
thisIsMySystem ifTrue:[ |
289856108844
renamed mswindows3.style to mswindows95.style
Claus Gittinger <cg@exept.de>
parents:
275
diff
changeset
|
67 |
Display hasGrayscales ifTrue:[ |
289856108844
renamed mswindows3.style to mswindows95.style
Claus Gittinger <cg@exept.de>
parents:
275
diff
changeset
|
68 |
OperatingSystem getOSType = 'win32' ifTrue:[ |
289856108844
renamed mswindows3.style to mswindows95.style
Claus Gittinger <cg@exept.de>
parents:
275
diff
changeset
|
69 |
View defaultStyle:#mswindows95 |
289856108844
renamed mswindows3.style to mswindows95.style
Claus Gittinger <cg@exept.de>
parents:
275
diff
changeset
|
70 |
] ifFalse:[ |
289856108844
renamed mswindows3.style to mswindows95.style
Claus Gittinger <cg@exept.de>
parents:
275
diff
changeset
|
71 |
View defaultStyle:#iris. |
289856108844
renamed mswindows3.style to mswindows95.style
Claus Gittinger <cg@exept.de>
parents:
275
diff
changeset
|
72 |
"/ |
289856108844
renamed mswindows3.style to mswindows95.style
Claus Gittinger <cg@exept.de>
parents:
275
diff
changeset
|
73 |
"/ or whatever you like as default ... |
289856108844
renamed mswindows3.style to mswindows95.style
Claus Gittinger <cg@exept.de>
parents:
275
diff
changeset
|
74 |
"/ |
289856108844
renamed mswindows3.style to mswindows95.style
Claus Gittinger <cg@exept.de>
parents:
275
diff
changeset
|
75 |
"/ View defaultStyle:#motif. |
289856108844
renamed mswindows3.style to mswindows95.style
Claus Gittinger <cg@exept.de>
parents:
275
diff
changeset
|
76 |
] |
217 | 77 |
] ifFalse:[ |
279
289856108844
renamed mswindows3.style to mswindows95.style
Claus Gittinger <cg@exept.de>
parents:
275
diff
changeset
|
78 |
View defaultStyle:#normal |
289856108844
renamed mswindows3.style to mswindows95.style
Claus Gittinger <cg@exept.de>
parents:
275
diff
changeset
|
79 |
]. |
209 | 80 |
]. |
104 | 81 |
|
152 | 82 |
thisIsMySystem ifTrue:[ |
217 | 83 |
"/ |
249 | 84 |
"/ I want the hostname to be prepended to a windows label |
85 |
"/ |
|
86 |
StandardSystemView includeHostNameInLabel:true. |
|
318 | 87 |
]. |
249 | 88 |
|
318 | 89 |
thisIsMySystem ifTrue:[ |
249 | 90 |
"/ |
217 | 91 |
"/ I prefer a smaller menu font |
92 |
"/ |
|
257 | 93 |
"/ MenuView defaultFont:(MenuView defaultFont size:10). |
318 | 94 |
]. |
161 | 95 |
|
318 | 96 |
"/ add my private directories to the searchPath ... |
97 |
"/ This does not make sense in your environment. |
|
98 |
"/ However, I leave the code here to show how its done. |
|
99 |
"/ |
|
100 |
thisIsMySystem ifTrue:[ |
|
101 |
#( |
|
102 |
'../../not_delivered' |
|
103 |
'../../private_classes' |
|
104 |
'../../fileIn/not_delivered' |
|
105 |
'../../libpro' |
|
106 |
) do:[:p | |
|
107 |
p asFilename exists ifTrue:[ |
|
108 |
Smalltalk systemPath addFirst:p. |
|
109 |
] |
|
110 |
]. |
|
111 |
]. |
|
112 |
||
25 | 113 |
"/ since smalltalk keeps track of which directories exist |
114 |
"/ in the path, this cache has to be flushed whenever new directories |
|
217 | 115 |
"/ are added to the system path: |
25 | 116 |
"/ |
24 | 117 |
Smalltalk flushPathCaches. |
16 | 118 |
|
25 | 119 |
"/ |
120 |
"/ color allocation strategy: |
|
121 |
"/ |
|
122 |
"/ the default is to allocate from the colormap as required. |
|
123 |
"/ As long as the number of distinct colors used is less than the number |
|
124 |
"/ of available colors (which is usually the case) this leads to better looking |
|
125 |
"/ images. |
|
126 |
"/ However, if many images are to be displayed simulatiously, images displayed |
|
127 |
"/ first may steal too many colors required in images displayed later. |
|
128 |
"/ In this case, it is better to preallocate some colors, and dither all images |
|
129 |
"/ using theese. Of course, while making the worst case better, this makes |
|
130 |
"/ the best case worse. You can decide ... |
|
131 |
"/ |
|
10 | 132 |
"/ Color getColors6x6x4. |
133 |
||
134 |
||
25 | 135 |
"/ claus: |
26 | 136 |
"/ The history manager automatically adds a history line to changed |
137 |
"/ methods and optionally to a classes history method. |
|
217 | 138 |
"/ if you dont like this, comment the following lines. |
26 | 139 |
"/ |
331
a0be330a1f43
moved compiler setup into host-specific file.
Claus Gittinger <cg@exept.de>
parents:
326
diff
changeset
|
140 |
thisIsExeptsDomain ifTrue:[ |
26 | 141 |
HistoryManager notNil ifTrue:[ |
195 | 142 |
'private.rc [info]: activating HistoryManager ...' infoPrintCR. |
26 | 143 |
HistoryManager activate. |
144 |
] |
|
7 | 145 |
]. |
41 | 146 |
|
147 |
"/ claus: |
|
180 | 148 |
"/ I startup the rdoit server process; |
149 |
"/ (using rdoit to start ST/X views via window manager menus ...) |
|
217 | 150 |
"/ If you like (and want) this to be also started automatically, |
151 |
"/ replace the if- by 'true ifTrue:...' or remove the if. |
|
180 | 152 |
"/ |
204 | 153 |
" |
180 | 154 |
thisIsMySystem ifTrue:[ |
195 | 155 |
'private.rc [info]: starting RDoItServer ...' infoPrintCR. |
199 | 156 |
Autoload autoloadFailedSignal handle:[:ex | |
157 |
'private.rc [warning]: cannot load RDoItServer' errorPrintCR |
|
204 | 158 |
ex return |
199 | 159 |
] do:[ |
204 | 160 |
RDoItServer autoload. |
161 |
RDoItServer start. |
|
162 |
RDoItServer allowHost:'localhost'. |
|
199 | 163 |
] |
180 | 164 |
]. |
204 | 165 |
" |
180 | 166 |
|
167 |
"/ claus: |
|
41 | 168 |
"/ I dont want those warnings about stx features being non-portable ... |
169 |
"/ However, you should (at least when new to the system) see them. |
|
170 |
"/ Once you get bored about them, make the below unconditional. |
|
152 | 171 |
"/ (you can also turn them off in the Launchers settings menu ...) |
41 | 172 |
"/ |
236 | 173 |
Compiler warnPossibleIncompatibilities:false. |
174 |
Compiler warnSTXSpecials:false. |
|
175 |
Compiler allowUnderscoreInIdentifier:true. |
|
176 |
Compiler warnUnderscoreInIdentifier:false. |
|
25 | 177 |
|
166 | 178 |
|
25 | 179 |
"/ set the package back to some useful default for programming |
180 |
"/ this is the package token assigned (by default) to all new methods/classes |
|
181 |
"/ (so you can use a browser on package=#private to find all of your new |
|
182 |
"/ stuff easily. (the conditional on Project being nonNil is for stripped down |
|
183 |
"/ systems without a Project class) |
|
184 |
||
185 |
Project notNil ifTrue:[ |
|
186 |
Project setDefaultProject. |
|
187 |
Project current packageName:#'private'. |
|
188 |
]. |
|
8 | 189 |
! |
123
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
190 |
|
306 | 191 |
"/ any personal file ? |
307 | 192 |
Smalltalk fileIn:('p_' , OperatingSystem getLoginName , '.rc'). |
306 | 193 |
|
126 | 194 |
(Smalltalk commandLine includes:'-q') ifFalse:[ |
123
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
195 |
"/ |
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
196 |
"/ this turns off/on information messages from classes |
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
197 |
"/ (such as 'D8IMAGE: allocating colors ...' |
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
198 |
"/ |
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
199 |
"/ Object infoPrinting:false. |
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
200 |
Object infoPrinting:true. |
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
201 |
|
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
202 |
"/ |
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
203 |
"/ this turns off/on information messages from the VM |
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
204 |
"/ (such as 'MEM: chitty chatty ...' |
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
205 |
"/ |
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
206 |
"/ ObjectMemory infoPrinting:false. |
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
207 |
ObjectMemory infoPrinting:true. |
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
208 |
]. |
143
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
209 |
|
326 | 210 |
"/ |
211 |
"/ startBlocks will be evaluated after the thread-scheduler have been started |
|
212 |
"/ and the displays event dispatcher is running. |
|
213 |
"/ |
|
143
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
214 |
Smalltalk addStartBlock:[ |
204 | 215 |
|s| |
216 |
||
143
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
217 |
"/ |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
218 |
"/ start some views ... |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
219 |
"/ you can add all stuff you'd like to come up by default |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
220 |
"/ the first time. |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
221 |
"/ |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
222 |
|
195 | 223 |
'private.rc [info]: starting main-menu ...' infoPrintCR. |
289 | 224 |
Text new. "/ to avoid visible messages in minitalk |
296 | 225 |
"/ Launcher open. |
226 |
NewLauncher open |
|
143
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
227 |
|
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
228 |
"/ |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
229 |
"/ start a SystemBrowser |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
230 |
"/ - I dont want one (using Launcher) |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
231 |
"/ |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
232 |
"/ SystemBrowser open. |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
233 |
|
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
234 |
"/ |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
235 |
"/ start a FileBrowser |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
236 |
"/ - I dont want one (using Launcher) |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
237 |
"/ |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
238 |
"/ FileBrowser open. |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
239 |
|
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
240 |
"/ |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
241 |
"/ start a Workspace |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
242 |
"/ - I dont want one (using Launcher) |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
243 |
"/ |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
244 |
"/ Workspace open. |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
245 |
]. |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
246 |
|
123
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
247 |
! |
306 | 248 |