summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Nguyen <james@jojojames.com>2022-05-21 21:31:44 -0400
committerJames Nguyen <james@jojojames.com>2022-05-21 21:35:30 -0400
commit32584b7b46066ef095e6fadb1ce9898bea17e27b (patch)
tree0db28cd7e6856ebdb672210674bea5f0adb0ca6e
parent8e8bad58dd9d421c79501686ca17d65e9345b805 (diff)
[xwidget] Bind y to copy selection
-rw-r--r--modes/xwidget/evil-collection-xwidget.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/modes/xwidget/evil-collection-xwidget.el b/modes/xwidget/evil-collection-xwidget.el
index e33869b..da73514 100644
--- a/modes/xwidget/evil-collection-xwidget.el
+++ b/modes/xwidget/evil-collection-xwidget.el
@@ -83,6 +83,10 @@ F is the name of function, N is the pixel height."
(defun evil-collection-xwidget-setup ()
"Set up `evil' bindings for `xwidget'."
(evil-collection-set-readonly-bindings 'xwidget-webkit-mode-map)
+
+ (evil-collection-define-key 'visual 'xwidget-webkit-mode-map
+ "y" 'xwidget-webkit-copy-selection-as-kill)
+
(evil-collection-define-key 'normal 'xwidget-webkit-mode-map
;; Mimic vimium (a browser extension)
;;