# Be 8 bit clean.
set input-meta on
set output-meta on

# some defaults / modifications for the emacs mode
$if mode=emacs

# allow the use of the Home/End keys
"\e[1~": beginning-of-line
"\e[2~": quoted-insert

# allow the use of the Delete/Insert keys
"\e[3~": delete-char
"\e[4~": end-of-line

# mappings for Ctrl-left-arrow and Ctrl-right-arrow for word moving 
"\e[1;5C": forward-word
"\e[1;5D": backward-word
"\e[5C": forward-word
"\e[5D": backward-word

"\e[8~": end-of-line

$endif
