Next: , Up: Customization of REDUCE IDE   [Contents][Index]


13.1 REDUCE mode hooks

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

When REDUCE mode is activated in a buffer the last step of its initialization process is to execute the function(s) assigned to the variable reduce-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-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-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.

Adding the function require-reduce-run to this hook to automatically load reduce-run is now deprecated and the function will be removed in the next release; instead, please customize the new option autoload-reduce-run. See Customization of REDUCE Run mode.


Next: REDUCE mode display customization, Up: Customization of REDUCE IDE   [Contents][Index]