diff options
author | Amin Bandali <bandali@gnu.org> | 2019-05-12 00:42:14 -0400 |
---|---|---|
committer | Amin Bandali <bandali@gnu.org> | 2019-05-12 00:42:14 -0400 |
commit | fb078e63a2c28d971e294dc536326e4b300f1e7b (patch) | |
tree | 26a66432246f76cd01e4ffcd2825fca5e493aad2 | |
parent | 63c1969d27cdbe4ff36447901b25afe330317c9a (diff) | |
download | configs-fb078e63a2c28d971e294dc536326e4b300f1e7b.tar.gz configs-fb078e63a2c28d971e294dc536326e4b300f1e7b.tar.xz configs-fb078e63a2c28d971e294dc536326e4b300f1e7b.zip |
emacs: multi-term: add some bindings, send more raw keys
in particular makes using weechat more pleasant
-rw-r--r-- | .emacs.d/init.el | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 6e435fd..e1f1262 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -1368,7 +1368,10 @@ For disabling the behaviour for certain buffers and/or modes." (use-package multi-term :defer 0.6 - :bind (("C-c a s m" . multi-term-dedicated-toggle) + :bind (("C-c a s m m" . multi-term) + ("C-c a s m d" . multi-term-dedicated-toggle) + ("C-c a s m p" . multi-term-prev) + ("C-c a s m n" . multi-term-next) :map term-mode-map ("C-c C-j" . term-char-mode) :map term-raw-map @@ -1387,18 +1390,34 @@ For disabling the behaviour for certain buffers and/or modes." '(("C-c C-c" . term-interrupt-subjob) ("C-c C-e" . term-send-esc) ("C-k" . kill-line) - ("C-y" . term-paste) + ;; ("C-y" . term-paste) + ("C-y" . term-send-raw) ("M-f" . term-send-forward-word) ("M-b" . term-send-backward-word) ("M-p" . term-send-up) ("M-n" . term-send-down) + ("M-j" . term-send-raw-meta) + ("M-y" . term-send-raw-meta) + ("M-/" . term-send-raw-meta) + ("M-0" . term-send-raw-meta) + ("M-1" . term-send-raw-meta) + ("M-2" . term-send-raw-meta) + ("M-3" . term-send-raw-meta) + ("M-4" . term-send-raw-meta) + ("M-5" . term-send-raw-meta) + ("M-6" . term-send-raw-meta) + ("M-7" . term-send-raw-meta) + ("M-8" . term-send-raw-meta) + ("M-9" . term-send-raw-meta) ("<C-backspace>" . term-send-backward-kill-word) ("<M-DEL>" . term-send-backward-kill-word) ("M-d" . term-send-delete-word) ("M-," . term-send-raw) ("M-." . comint-dynamic-complete)) term-unbind-key-alist - '("C-z" "C-x" "C-c" "C-h" "C-y" "<ESC>"))) + '("C-z" "C-x" "C-c" "C-h" + ;; "C-y" + "<ESC>"))) (use-package page-break-lines :defer 0.5 |