The variables described in this chapter configure the menus, toolbar,
and user-level commands. They should be set in the script mode
before proof-config-done
is called. (Toolbar configuration must
be made before `proof-toolbar.el' is loaded, which usually is
triggered automatically by an attempt to display the toolbar).
As well as the generic Proof General menu, each proof assistant is provided with a specific menu which can have prover-specific commands. Proof General puts some default things on this menu, including the commands to start/stop the prover, and the user-extensible "Favourites" menu.
easy-menu-define
' for more details.
easy-menu-define
' for more details.
Unlike the menus, Proof General has only one toolbar. For the "generic" aspect of Proof General to work well, we shouldn't change (the meaning of) the existing toolbar buttons too far. This would discourage people from experimenting with different proof assistants when they don't really know them, which is one of the advantages that Proof General brings.
But in case it is hard to map some of the generic buttons onto functions in particular provers, and to allow extra buttons, there is a mechanism for adjustment.
I used The Gimp to create the buttons for Proof General. The development distribution includes a button blank and some notes in `etc/notes.txt' about making new buttons.
proof-toolbar
.el' for
defining functions, images.
For each token, we expect an icon with base filename token, a function proof-toolbar-<TOKEN>, and (optionally) a dynamic enabler proof-toolbar-<TOKEN>-enable-p.
If enablep is absent, item is enabled; if enablep is present, item is only added to menubar and toolbar if enablep is non-null.
If menuname is nil, item will not appear on the scripting menu.
If tooltip is nil, item will not appear on the toolbar.
The default value is `proof-toolbar-entries-default
' which contains
the standard Proof General buttons.
Here's an example of how to remove a button, from `af2.el':
(setq af2-toolbar-entries (remassoc 'state af2-toolbar-entries))
Go to the first, previous, next, last section, table of contents.