Defining a Keymap Prefix

I’ve written about this before but it’s a useful technique and worth revisiting now and then. One of the problems all Emacs users face eventually is a lack of practical key sequences for commands. One way of solving this problem is to define your own keymap prefix. Just as many of the built-in commands have the prefix 【Ctrl+x】, we can define our own prefix and add commands to an additional key.

Between this technique and defining hydras, you can easily assign a key sequence to what Lee describes as take-a-break commands. For commands you use a lot, especially during text input, it makes sense to assign a key to one of the (usually ignored) other prefix keys: 【Super】 and 【Hyper】. I have hyper mapped the the 【fn】 key and use sequences such as 【fn+a】 to call often used commands, avy-goto-word-1 in this case.

This entry was posted in General and tagged . Bookmark the permalink.