Re: bind a complex key sequence?



On Fri, 2005-09-02 at 22:31 +0800, William XWL wrote:

> A correct one:
> 
> (setq my-ctrl-c-keymap (make-keymap))
> (bind-keys my-ctrl-c-keymap "b" 'maximize-window-fullscreen-toggle)
> (bind-keys global-keymap "C-c" my-ctrl-c-keymap)
> 
> BUT ! Then i lose "C-c" prefix in Emacs ! sigh, i've to give up. 

Probably you can create a catch all binding in the sub keymap for C-c
and synthesize the key stroke sequence for the input-focus window if the
catch all function is hit. But I'm not sure if there is such a catch all
function for key maps.
-- 
Fruhwirth Clemens - http://clemens.endorphin.org 
for robots: sp4mtrap endorphin org



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