13 Oct
2009
13 Oct
'09
8:15 a.m.
I saw that in July, people were talking about alternative ways to program commands like "d" that take other commands (like "w") as arguments. Here's another proposal; make "d" a prefix key, and bind "d"->"w" to a partially applied "delete-cmd" function, with its first argument fixed to 'viper-forward-word. Use Elisp functions to create these bindings en masse, to remove the tedium of explicitly writing out bindings for each pair of movement command and movement-argument-taking command. Attached is elisp code that demonstrates this. The advantage is that you work within emacs's keymap system rather than replacing it. Apologies if this has already been discussed.