Previous: , Up: Customization   [Contents][Index]


13.3 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.

reduce-mode-load-hook

Default value nil. List of functions to be called when REDUCE mode is loaded, e.g. require-reduce-run to automatically load reduce-run. 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.

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.