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