[Date Prev][Date Next][Thread Prev][][Date Index][Thread Index]

Re: help emacs-w3m key binding with F21 and F22



>>>>> In [emacs-w3m : No.08432] Jue Kong wrote:

> I want to bind the key F21 (Navigate backward) and F22 (Navigate
> forward) to emacs-w3m with the code bellow:

> (defun w3m-add-keys ()
>   (define-key w3m-mode-map <f21> 'w3m-view-previous-page)
>   (define-key w3m-mode-map <f22> 'w3m-view-next-page))
> (add-hook 'w3m-mode-hook 'w3m-add-keys)

> but generate error:

> symbol's function definition is void: <f21>

> can you give me some suggestion? thanks.

[f21] and [f22] seem to be able to be used instead.  I cannot
verify this since there aren't such keys in my keyboard, though.