14.1 REDUCE IDE hooks

Hooks allow arbitrary customization that is not supported by the standard customization facilities. When REDUCE mode or REDUCE Run mode is loaded into Emacs, the last step of the loading process is to execute the function(s) assigned to the load hook. This hook would be appropriate for modifying global properties of the mode such as its key map.

When REDUCE mode or REDUCE Run mode is activated in a buffer the last step of its initialization process is to execute the function(s) assigned to the mode hook. This hook would be appropriate for modifying properties local to the buffer.

See Installation of the REDUCE IDE, for further details.

prog-mode-hook

Default value nil. Normal hook run when entering programming modes. Functions added to this hook apply to all programming modes. They are run before any functions on reduce-mode-hook.

reduce-mode-load-hook

Default value nil. List of functions to be called when REDUCE mode is loaded. It can be used to customize global features of REDUCE mode such as its key map, i.e. it is a good place to put key bindings.

However, adding the function require-reduce-run to this hook to automatically load reduce-run is no longer supported and the function has been removed; instead, please customize the option reduce-run-autoload. See REDUCE Run mode customization.

reduce-mode-hook

Default value nil. List of functions to be called when REDUCE mode is entered. It can be used to customize buffer-local features of REDUCE mode, e.g. use turn-on-font-lock to turn on font-lock mode locally.

reduce-run-load-hook

Default value nil. The hook run when REDUCE Run mode is loaded. It is a good place to put key bindings.

reduce-run-mode-hook

Default value nil. The main hook for customizing REDUCE Run mode.