Next: , Previous: Interaction, Up: Top


5 Customization: .geomview files

When Geomview is started, it loads and executes commands in a system-wide startup file named .geomview. This file is in the data subdirectory of the Geomview distribution directory and contains gcl commands to configure Geomview in a way common to all users on the system.

Next, Geomview looks for the file ~/.geomview (~ stands for your home directory). You can use this to configure your own default Geomview behavior to suit your tastes.

After reading ~/.geomview, Geomview looks for a file named .geomview in the current directory. If such a file exists Geomview reads it, unless it is the same as ~/.geomview (which would be the case if you are running Geomview from your home directory). You can use the current directory's .geomview to create a Geomview customization specific to a certain project.

You can use .geomview files to control all kinds of things about Geomview. They can contain any valid gcl statements. Especially useful is the ui-panel command which controls the initial placement of Geomview's panels. For an example see the system-wide .geomview file mentioned above. For details of gcl, See GCL.

It is a good idea to enclose all the commands you put in a .geomview file in a progn statement in order to cause Geomview to execute them all at once. Otherwise Geomview might execute them sequentially over the first few refresh cycles after starting up.