author | Stefan Vogel <sv@exept.de> |
Tue, 10 Sep 1996 00:42:03 +0200 | |
changeset 143 | 71dc5ec7ef26 |
parent 141 | bf500c06ebdc |
child 152 | 956f80caf731 |
permissions | -rw-r--r-- |
4 | 1 |
"* |
2 |
* $Header$ |
|
3 |
* |
|
4 |
* sample private.rc - file |
|
5 |
* |
|
52 | 6 |
* a copy of this file can (should) reside in $home/.smalltalk/private.rc or |
7 |
* in the current directory - put all private preferences in here. |
|
41 | 8 |
* |
9 |
* |
|
25 | 10 |
* notice, you will find some things enclosed in |
143
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
11 |
* ... claus ifTrue:[ |
25 | 12 |
* |
143
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
13 |
* these are my personal preferences which will be |
25 | 14 |
* ignored in your environment, but are taken in mine. |
15 |
* 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
|
16 |
* (you may want to have a look into it - some is of general interest) |
4 | 17 |
*" |
18 |
||
25 | 19 |
"/ |
143
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
20 |
"/ If local sources have preference over source code managment |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
21 |
"/ |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
22 |
"/Class tryLocalSourceFirst:true. |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
23 |
|
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
24 |
"/ |
26 | 25 |
"/ I want the hostname to be prepended to a windows label |
26 |
"/ |
|
27 |
StandardSystemView includeHostNameInLabel:true. |
|
28 |
||
29 |
"/ |
|
25 | 30 |
"/ this turns off error/fatal messages from the VM |
31 |
"/ (it does not really make sense to turn them off) |
|
32 |
"/ |
|
33 |
"/ Smalltalk debugPrinting:false. |
|
34 |
||
35 |
"/ |
|
36 |
"/ set the package for fileIns done below |
|
37 |
"/ |
|
24 | 38 |
Project notNil ifTrue:[ |
39 |
Project setDefaultProject. |
|
25 | 40 |
Project current packageName:#'goody-fileIn'. |
24 | 41 |
]. |
42 |
! |
|
43 |
||
143
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
44 |
|whoAmI claus| |
91 | 45 |
|
123
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
46 |
'reading keyboard.rc ...' infoPrintCR. |
41 | 47 |
Smalltalk fileIn:'keyboard.rc'. |
26 | 48 |
|
49 |
"/ |
|
50 |
"/ no matter what the 'display.rc' says: |
|
51 |
"/ I want my #iris style ... |
|
52 |
"/ |
|
77 | 53 |
View defaultStyle:#iris. |
54 |
"/ View defaultStyle:#motif. |
|
25 | 55 |
|
104 | 56 |
|
57 |
||
25 | 58 |
"/ add my private directories to the searchPath ... |
59 |
"/ This does not make sense in your environment. |
|
60 |
"/ However, I leave the code here to show how its done. |
|
61 |
"/ |
|
24 | 62 |
Smalltalk systemPath addFirst:'../..'. |
63 |
||
91 | 64 |
whoAmI := OperatingSystem getLoginName. |
143
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
65 |
claus := whoAmI = 'claus' or:[whoAmI = 'cg']. |
91 | 66 |
|
143
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
67 |
claus ifTrue:[ |
26 | 68 |
Smalltalk systemPath addFirst:'../../not_delivered'. |
69 |
Smalltalk systemPath addFirst:'../../private_classes'. |
|
70 |
Smalltalk systemPath addFirst:'../../fileIn/not_delivered'. |
|
25 | 71 |
Smalltalk systemPath addFirst:'../../libpro'. |
16 | 72 |
]. |
25 | 73 |
|
74 |
"/ since smalltalk keeps track of which directories exist |
|
75 |
"/ in the path, this cache has to be flushed whenever new directories |
|
76 |
"/ are added to the path: |
|
77 |
"/ |
|
24 | 78 |
Smalltalk flushPathCaches. |
16 | 79 |
|
25 | 80 |
"/ |
81 |
"/ color allocation strategy: |
|
82 |
"/ |
|
83 |
"/ the default is to allocate from the colormap as required. |
|
84 |
"/ As long as the number of distinct colors used is less than the number |
|
85 |
"/ of available colors (which is usually the case) this leads to better looking |
|
86 |
"/ images. |
|
87 |
"/ However, if many images are to be displayed simulatiously, images displayed |
|
88 |
"/ first may steal too many colors required in images displayed later. |
|
89 |
"/ In this case, it is better to preallocate some colors, and dither all images |
|
90 |
"/ using theese. Of course, while making the worst case better, this makes |
|
91 |
"/ the best case worse. You can decide ... |
|
92 |
"/ |
|
10 | 93 |
"/ Color getColors6x6x4. |
94 |
||
95 |
||
25 | 96 |
"/ The following loads some nice cursors; for example thumbsUp and thumbsDown |
97 |
"/ |
|
98 |
"/ claus: |
|
99 |
"/ I like those fancy cursors :-) |
|
100 |
"/ if you think this is too 'childish', remove the line below ... |
|
101 |
"/ |
|
102 |
"/ |
|
123
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
103 |
"/ 'loading fancy cursors ...' infoPrintCR. |
118 | 104 |
Cursor initializeNewCursors. |
10 | 105 |
|
25 | 106 |
|
107 |
"/ claus: |
|
26 | 108 |
"/ The history manager automatically adds a history line to changed |
109 |
"/ methods and optionally to a classes history method. |
|
110 |
"/ |
|
143
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
111 |
claus ifTrue:[ |
26 | 112 |
HistoryManager notNil ifTrue:[ |
123
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
113 |
'activating HistoryManager ...' infoPrintCR. |
26 | 114 |
HistoryManager activate. |
115 |
] |
|
7 | 116 |
]. |
41 | 117 |
|
118 |
"/ claus: |
|
119 |
"/ I dont want those warnings about stx features being non-portable ... |
|
120 |
"/ However, you should (at least when new to the system) see them. |
|
121 |
"/ Once you get bored about them, make the below unconditional. |
|
122 |
"/ (you can also turn them off in the NewLaunchers settings menu ...) |
|
123 |
"/ |
|
26 | 124 |
Compiler allowUnderscoreInIdentifier:true. |
125 |
Compiler warnUnderscoreInIdentifier:false. |
|
141 | 126 |
Compiler warnSTXSpecials:false. |
10 | 127 |
|
25 | 128 |
|
129 |
"/ this is a temporary kludge: specify the flags to be used |
|
130 |
"/ when compiling via stc. Primitive compilation (from within the browser) |
|
131 |
"/ is still experimental. So you better not care (yet) |
|
132 |
"/ BTW: its only supported on UnixWare and SGI anyway |
|
133 |
"/ (and not in the free demo release). |
|
134 |
"/ |
|
135 |
Compiler stcCompilation:#default. |
|
10 | 136 |
OperatingSystem getOSType = 'irix' ifTrue:[ |
64 | 137 |
Compiler stcCompilationIncludes:'-I../../include -I../../libPVM/pvm3/include -I../../libPVM/pvm3/pvmgs'. |
26 | 138 |
Compiler stcCompilationDefines:'-DGLX'. |
10 | 139 |
] ifFalse:[ |
64 | 140 |
Compiler stcCompilationIncludes:'-I../../include -I../../support/VGL/vogl/src -I../../libPVM/pvm3/include -I../../libPVM/pvm3/pvmgs'. |
26 | 141 |
Compiler stcCompilationDefines:'-DVGL'. |
142 |
||
143 |
"/ |
|
144 |
"/ disabled; thats the default anyway .... |
|
145 |
"/ |
|
146 |
"/ OperatingSystem getOSType = 'linux' ifTrue:[ |
|
147 |
"/ ObjectFileLoader searchedLibraries:#('/usr/lib/libc.a') |
|
148 |
"/ ] |
|
149 |
||
25 | 150 |
]. |
64 | 151 |
Compiler stcCompilationOptions:'+optinline +inlineNew -O'. |
7 | 152 |
|
25 | 153 |
"/ experimental: try to always keep some bytes in the pocket |
64 | 154 |
"/ this changes the memory policy, to start the background collector whenever |
25 | 155 |
"/ freespace drops below 250k or 500k have been allocated since the last GC. |
156 |
"/ AND to allocate more memory, if (after the collect) less than 1Mb is free. |
|
157 |
"/ Doing so makes the system behave better if lots of memory is required |
|
64 | 158 |
"/ for short periods of time, since it prepares itself for that situation |
25 | 159 |
"/ during idle time. (I often walk around in the fileBrowser, loading big |
160 |
"/ files like XWorkstation.st or SystemBrowser.st ....) |
|
161 |
"/ |
|
26 | 162 |
ObjectMemory freeSpaceGCAmount:1000000. |
163 |
ObjectMemory freeSpaceGCLimit:250000. |
|
164 |
ObjectMemory incrementalGCLimit:500000. |
|
165 |
ObjectMemory startBackgroundCollectorAt:5. |
|
166 |
ObjectMemory startBackgroundFinalizationAt:5. |
|
25 | 167 |
|
168 |
"/ experimental: configure the memory manager to quickly increase |
|
169 |
"/ its oldSpace, as long as it stays below 8Mb (i.e. do not enter |
|
170 |
"/ a blocking mark&sweep or compress, but go straight ahead increasing |
|
171 |
"/ the oldSpace). Above that, behave as usual, i.e. try a GC first, |
|
172 |
"/ then increase the oldSpace size if that did not help. |
|
173 |
"/ If you have a machine with lots of (real) memory, you may want to |
|
174 |
"/ increase the number. The value below should be ok for 16-32Mb machines. |
|
175 |
"/ |
|
26 | 176 |
ObjectMemory fastMoreOldSpaceLimit:8*1024*1024. |
177 |
ObjectMemory fastMoreOldSpaceAllocation:true. |
|
16 | 178 |
! |
179 |
||
25 | 180 |
"/ another experimental (and a secret for now, since I dont want |
181 |
"/ you to play with those ;-) |
|
182 |
"/ For now, this is experimental. Once the best numbers |
|
183 |
"/ have been found, I'll hardwire them and document it ... |
|
184 |
||
8 | 185 |
|a| |
186 |
ObjectMemory newSpaceSize > (500*1024) ifTrue:[ |
|
187 |
a := #(nil nil nil nil -16 -4 -2 -2 0 0 16 nil) copy. |
|
188 |
] ifFalse:[ |
|
17 | 189 |
"/ min max cpy /32 /16 /8 /4 /2 /4 /8 /16 /32 " |
25 | 190 |
"/ |
191 |
"/ slow tenure - keeps objects longer in newSpace, |
|
192 |
"/ producing more scavenge overhead, but releasing IGC somewhat |
|
193 |
"/ |
|
17 | 194 |
"/ a := #(nil nil nil -100 -8 -4 -1 1 2 4 8 16 nil) copy. |
195 |
"/ a := #(nil nil nil nil -16 -4 0 0 0 4 16 nil) copy. |
|
25 | 196 |
|
17 | 197 |
"fast tenure" |
25 | 198 |
"/ |
199 |
"/ fast tenure - moves objects earlier into oldSpace, |
|
200 |
"/ releasing newSpace collector; however, the oldSpace IGC |
|
201 |
"/ may have more work to do. |
|
202 |
"/ |
|
16 | 203 |
a := #(nil nil nil nil -20 -8 -3 -1 -1 1 16 nil) copy. |
8 | 204 |
]. |
205 |
ObjectMemory tenureParameters:a. |
|
25 | 206 |
|
207 |
||
208 |
"/ set the package back to some useful default for programming |
|
209 |
"/ this is the package token assigned (by default) to all new methods/classes |
|
210 |
"/ (so you can use a browser on package=#private to find all of your new |
|
211 |
"/ stuff easily. (the conditional on Project being nonNil is for stripped down |
|
212 |
"/ systems without a Project class) |
|
213 |
||
214 |
Project notNil ifTrue:[ |
|
215 |
Project setDefaultProject. |
|
216 |
Project current packageName:#'private'. |
|
217 |
]. |
|
8 | 218 |
! |
123
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
219 |
|
126 | 220 |
(Smalltalk commandLine includes:'-q') ifFalse:[ |
123
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
221 |
"/ |
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
222 |
"/ this turns off/on information messages from classes |
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
223 |
"/ (such as 'D8IMAGE: allocating colors ...' |
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
224 |
"/ |
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
225 |
"/ Object infoPrinting:false. |
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
226 |
Object infoPrinting:true. |
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
227 |
|
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
228 |
"/ |
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
229 |
"/ this turns off/on information messages from the VM |
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
230 |
"/ (such as 'MEM: chitty chatty ...' |
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
231 |
"/ |
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
232 |
"/ ObjectMemory infoPrinting:false. |
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
233 |
ObjectMemory infoPrinting:true. |
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
234 |
]. |
143
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
235 |
|
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
236 |
Smalltalk addStartBlock:[ |
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 |
"/ start some views ... |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
239 |
"/ 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
|
240 |
"/ the first time. |
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 |
|
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
243 |
'starting main-menu ...' infoPrintCR. |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
244 |
Launcher 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 |
"/ |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
247 |
"/ start a SystemBrowser |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
248 |
"/ - I dont want one (using Launcher) |
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 |
"/ SystemBrowser open. |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
251 |
|
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
252 |
"/ |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
253 |
"/ start a FileBrowser |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
254 |
"/ - I dont want one (using Launcher) |
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 |
"/ FileBrowser open. |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
257 |
|
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
258 |
"/ |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
259 |
"/ start a Workspace |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
260 |
"/ - I dont want one (using Launcher) |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
261 |
"/ |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
262 |
"/ Workspace open. |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
263 |
]. |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
264 |
|
123
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
265 |
! |