On Mon, Aug 24, 2009 at 9:27 PM, Christopher Roy Bratusek<[email protected]> wrote: >> * supporting a prefix for sawfish commands > > What is this actually good for? Just asking.
Just very simple and based on a recent discussion. For example, I like to be able to use M-C E as a prefix for executing shell commands. So I do M-C E g and start gnome-terminal, for example. I find it easier to organize them with various prefixes. Otherwise it is difficult (for me) to keep mnemonic names for comments. Here is the code: ;; define extended keystrokes (define dmg-keymap (make-keymap)) (bind-keys global-keymap "M-C-e" dmg-keymap) (bind-keys dmg-keymap "x" 'xterm) (bind-keys dmg-keymap "g" 'dmg-xterm) (bind-keys dmg-keymap "k" 'dmg-killall) (bind-keys dmg-keymap "j" 'dmg-gjiten) (bind-keys dmg-keymap "n" 'dmg-network) (bind-keys dmg-keymap "e" 'dmg-emacs) -- --dmg --- Daniel M. German http://turingmachine.org
