summaryrefslogtreecommitdiffstats
path: root/mode-key.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-09-02 06:33:20 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-09-02 06:33:20 +0000
commit61b7dc522d175c5f2a8b38d177adcf7282820380 (patch)
treeee7283c351483003c34d4778c0a7f94b65726180 /mode-key.c
parentc089e19020a55d5df5887821dda30cb8281dcc75 (diff)
Add a transpose-chars command in edit mode (C-t in emacs mode only). From Kalle
Olavi Niemitalo.
Diffstat (limited to 'mode-key.c')
-rw-r--r--mode-key.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mode-key.c b/mode-key.c
index 599de5ce..ce711e0f 100644
--- a/mode-key.c
+++ b/mode-key.c
@@ -57,6 +57,7 @@ struct mode_key_cmdstr mode_key_cmdstr_edit[] = {
{ MODEKEYEDIT_STARTOFLINE, "start-of-line" },
{ MODEKEYEDIT_SWITCHMODE, "switch-mode" },
{ MODEKEYEDIT_SWITCHMODEAPPEND, "switch-mode-append" },
+ { MODEKEYEDIT_TRANSPOSECHARS, "transpose-chars" },
{ 0, NULL }
};
@@ -200,6 +201,7 @@ const struct mode_key_entry mode_key_emacs_edit[] = {
{ '\013' /* C-k */, 0, MODEKEYEDIT_DELETETOENDOFLINE },
{ '\016' /* C-n */, 0, MODEKEYEDIT_HISTORYDOWN },
{ '\020' /* C-p */, 0, MODEKEYEDIT_HISTORYUP },
+ { '\024' /* C-t */, 0, MODEKEYEDIT_TRANSPOSECHARS },
{ '\025' /* C-u */, 0, MODEKEYEDIT_DELETELINE },
{ '\031' /* C-y */, 0, MODEKEYEDIT_PASTE },
{ '\033' /* Escape */, 0, MODEKEYEDIT_CANCEL },