79 # Define my favorite Emacs key bindings. |
80 # Define my favorite Emacs key bindings. |
80 "\C-@": set-mark |
81 "\C-@": set-mark |
81 "\C-w": kill-region |
82 "\C-w": kill-region |
82 "\M-w": copy-region-as-kill |
83 "\M-w": copy-region-as-kill |
83 |
84 |
84 # Ctrl+Left/Right to move by whole words. |
85 # Ctrl+Left/Right to move by whole words. XTerm/Mintty. |
85 "\e[1;5C": forward-word |
86 "\e[1;5C": forward-word |
86 "\e[1;5D": backward-word |
87 "\e[1;5D": backward-word |
87 # Same with Shift pressed. |
88 # Same with Shift pressed. |
88 "\e[1;6C": forward-word |
89 "\e[1;6C": forward-word |
89 "\e[1;6D": backward-word |
90 "\e[1;6D": backward-word |
|
91 # Same but in Putty. |
|
92 "\eOC": forward-word |
|
93 "\eOD": backward-word |
90 |
94 |
91 # Ctrl+Backspace/Delete to delete whole words. |
95 # Ctrl+Backspace/Delete to delete whole words. XTerm/Mintty. |
92 "\e[3;5~": kill-word |
96 "\e[3;5~": kill-word |
93 "\C-_": backward-kill-word |
97 "\C-_": backward-kill-word |
|
98 # Alt+DEL delete word forward. Putty. |
|
99 "\e\e[3~": kill-word |
|
100 # Alt+DEL delete word forward. XTerm, Mintty. |
|
101 "\e[3;3~": kill-word |
|
102 # Alt+BACKSPACE delete word backward. Putty. |
|
103 "\e\d": backward-kill-word |
94 |
104 |
95 # UP/DOWN filter history by typed string as prefix. |
105 # UP/DOWN filter history by typed string as prefix. |
96 "\e[A": history-search-backward |
106 "\e[A": history-search-backward |
97 "\C-p": history-search-backward |
107 "\C-p": history-search-backward |
98 "\eOA": history-search-backward |
108 "\eOA": history-search-backward |