2 * (C) Copyright 2007-2008 Jeremy Maitin-Shepard
3 * (C) Copyright 2008-2010 John J. Foerch
5 * Use, modification, and distribution are subject to the terms specified in the
9 define_buffer_mode("quote-next-mode",
10 function enable (buffer
) {
11 buffer
.override_keymaps([quote_next_keymap
]);
13 function disable (buffer
) {
14 buffer
.override_keymaps();
16 $display_name
= "QUOTE-NEXT",
17 $doc
= "This mode sends the next key combo to the buffer, bypassing "+
18 "normal key handling. It disengages after one key combo.");
20 interactive("quote-next-mode-disable",
21 "Disable quote-next-mode.",
23 quote_next_mode
.disable(I
.buffer
);
24 I
.buffer
.set_input_mode();
28 define_buffer_mode("quote-mode",
29 function enable (buffer
) {
30 buffer
.override_keymaps([quote_keymap
]);
32 function disable (buffer
) {
33 buffer
.override_keymaps();
35 $display_name
= "QUOTE",
36 $doc
= "This mode sends all key combos to the buffer, "+
37 "bypassing normal key handling, until the escape "+
41 interactive("quote-mode-disable",
42 "Disable quote-mode.",
44 quote_mode
.disable(I
.buffer
);
45 I
.buffer
.set_input_mode();