stumpwm-devel
[Top][All Lists]
Advanced

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

Re: [STUMP] removing all keybindings from .stumpwmrc


From: Burton Samograd
Subject: Re: [STUMP] removing all keybindings from .stumpwmrc
Date: Fri, 13 Jan 2012 10:01:59 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux)

Shawn Betts <address@hidden> writes:
> Many root level bindings that you expected to be cleared are stored in
> the *tile-group-root-map* and *group-root-map*. Those have to be
> cleared too. When you hit the prefix key stumpwm looks up the next
> keystroke in *root-map* and if no match is found then it checks
> *group-root-map* and if no match is found it looks in
> *tile-group-root-map* IF you're in a tiling group. It checks
> *float-group-root-map* if you're in a float group. Kind of
> complicated.

Thank you, the below seems to do the trick:

    (defun remove-all-keybindings ()
        (setf *root-map* (make-sparse-keymap))
        (setf *group-root-map* (make-sparse-keymap))
        (setf *tile-group-root-map* (make-sparse-keymap))
        (setf *float-group-root-map* (make-sparse-keymap))
        (sync-keys))

> -Shawn

Thanks Shawn!

--
Burton Samograd




reply via email to

[Prev in Thread] Current Thread [Next in Thread]