welcome: please sign in

Upload page content

You can upload content for the page named below. If you change the page name, you can also upload content for another page. If the page name is empty, we derive the page name from the file name.

File to load page content from
Page name
Comment
What program is the main source of Conkeror's design philosophy?

location: WritingBufferModes

A buffer-mode is a type of mode that can be enabled and disabled per-buffer, and whose effects are confined to an individual buffer. Some buffer-modes' function is to install a temporary keymap, like quote-mode and quote-next-mode. Other buffer-modes do more, like caret-mode.

1. 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: