about summary refs log tree commit diff
path: root/emacs/.emacs.d/wpc
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-02-02T18·31+0000
committerWilliam Carroll <wpcarro@gmail.com>2020-02-02T18·31+0000
commit4de3e5c39286553df5946327681d0fb814ae235b (patch)
treeac90d87701b11d8ad8c811612fc0d7d0abd5b0e5 /emacs/.emacs.d/wpc
parentffbe5c9757c4da212ea9e968c2f61265b905a41b (diff)
Add KBDs to vterm
Support pasting and scrolling.
Diffstat (limited to 'emacs/.emacs.d/wpc')
-rw-r--r--emacs/.emacs.d/wpc/wpc-misc.el14
1 files changed, 14 insertions, 0 deletions
diff --git a/emacs/.emacs.d/wpc/wpc-misc.el b/emacs/.emacs.d/wpc/wpc-misc.el
index 167c4b88ab9c..17566e598aee 100644
--- a/emacs/.emacs.d/wpc/wpc-misc.el
+++ b/emacs/.emacs.d/wpc/wpc-misc.el
@@ -50,6 +50,20 @@
 ;; Emacs library that interfaces with my Linux password manager.
 (use-package password-store)
 
+(use-package vterm
+  :config
+  (general-define-key
+   :keymaps '(vterm-mode-map)
+   :states '(insert)
+   "C-S-v" #'vterm-yank)
+  (general-define-key
+   :keymaps '(vterm-mode-map)
+   :states '(normal)
+   "K" #'evil-scroll-line-up
+   "J" #'evil-scroll-line-down
+   "C-b" #'evil-scroll-page-up
+   "C-f" #'evil-scroll-page-down))
+
 ;; Use en Emacs buffer as a REST client.
 ;; For more information: http://emacsrocks.com/e15.html
 (use-package restclient)