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