define_buffer_mode

The call form of define_buffer_mode looks like this:

define_buffer_mode("example-mode",
    function enable (buffer) {
    },
    function disable (buffer) {
    },
    $doc = "An example buffer-mode.");

Assuming the name "example-mode", define_buffer_mode produces the following things: