On Wed, May 18, 2011 at 09:24:48PM -0400, Joe Fineman wrote:
> I am using Conkeror (I am having the usual trouble finding out which
> version) under Windows XP.
> 

M-x version

> Knowing nothing of Java, I have been trying to bind a key, using the
> advice on your Web site, with occasional skeptical glances at my
> printout of the 2008 Conkeror User Manual (which seems to have
> disappeared).  It seems that it is supposed to be sufficient to create
> a file .conkerorrc in my home directory, and insert in it something
> like

*JavaScript, not Java.  Yes about the .conkerorrc.  For more information
 on that topic, see: http://conkeror.org/ConkerorRC

> 
> define_key(content_buffer_normal_keymap, "C-p", "cmd_paste");
> 
> However, that does not work; Conkeror does not see control-p.  What am
> I doing wrong?


If you have an up-to-date copy of Conkeror, then do this:

define_key(text_keymap, "C-p", "cmd_paste");
undefine_key(content_buffer_textarea_keymap, "C-p");

If it's an old enough version that it doesn't have 'text_keymap', then
bind it in content_buffer_text_keymap, content_buffer_textarea_keymap, and
minibuffer_keymap.  You can find out if your version has 'text_keymap' by
'M-: text_keymap' --- you will either see "[object Object]" or an error.

For future reference, a way to find out about keymaps is to switch focus
to the context that you want to bind a key in and hit 'C-h b'.

Further reference on choosing keymap(s): http://conkeror.org/Keymaps

-- 
John Foerch
_______________________________________________
Conkeror mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/conkeror

Reply via email to