The Mutt E-Mail Client : Configuration : Changing the default key bindings
Previous: Defining/Using aliases
Next: Defining aliases for character sets

## 3.3. Changing the default key bindings

Usage: `bind` map key function

This command allows you to change the default key bindings (operation invoked when pressing a key).

map specifies in which menu the binding belongs. The currently defined maps are:

- generic
- alias
- attach
- browser
- editor
- index
- compose
- pager
- pgp
- postpone

key is the key (or key sequence) you wish to bind. To specify a control character, use the sequence \Cx, where x is the letter of the control character (for example, to specify control-A use ``\Ca''). Note that the case of x as well as \C is ignored, so that \CA, \Ca, \cA and \ca are all equivalent. An alternative form is to specify the key as a three digit octal number prefixed with a ``\'' (for example \177 is equivalent to \c?).

In addition, key may consist of:

> `

>     \t              tab
>     <tab>           tab
>     \r              carriage return
>     \n              newline
>     \e              escape
>     <esc>           escape
>     <up>            up arrow
>     <down>          down arrow
>     <left>          left arrow
>     <right>         right arrow
>     <pageup>        Page Up
>     <pagedown>      Page Down
>     <backspace>     Backspace
>     <delete>        Delete
>     <insert>        Insert
>     <enter>         Enter
>     <return>        Return
>     <home>          Home
>     <end>           End
>     <space>         Space bar
>     <f1>            function key 1
>     <f10>           function key 10

> `

key does not need to be enclosed in quotes unless it contains a space (`` '').

function specifies which action to take when key is pressed. For a complete list of functions, see the reference. The special function `noop` unbinds the specify key sequence.

The Mutt E-Mail Client : Configuration : Changing the default key bindings
Previous: Defining/Using aliases
Next: Defining aliases for character sets