[Conkeror] carriage return - context sensitivity

Jeremy Maitin-Shepard jeremy at jeremyms.com
Tue Apr 8 08:07:12 PDT 2008


John J Foerch <jjfoerch at earthlink.net> writes:

> Silvio Levy <levy at msri.org> writes:
>> I like to have carriage-return scroll back, so I wrote
>> 
>> define_key(content_buffer_normal_keymap, "return", "cmd_movePageUp");
>> 
>> in my RC file.  This makes it act weird when filling in forms.  But
>> the mode when filling in a form is presumably different - for instance,
>> in content_buffer_normal_keymap I bind "j" to "cmd_scrollLineDown",
>> but in filling a form the "j" key inserts a j.
>> 
>> Any suggestions?  
>> 
>> Silvio

I think actually what want is:

define_key(content_buffer_normal_keymap, "return", "cmd_scrollPageUp");

define_key(content_buffer_text_keymap, "return", null, $fallthrough);

-- 
Jeremy Maitin-Shepard


More information about the Conkeror mailing list