From f1fbddb12138284c1e27569efa68e2da36c0354f Mon Sep 17 00:00:00 2001 From: William Carroll Date: Mon, 8 Nov 2021 21:45:43 -0800 Subject: fix(wpcarro/emacs): Restore ability to paste in visual mode I filed an issue with evil in case there's a potential bug-fix or feature: https://github.com/emacs-evil/evil/issues/1537 Change-Id: Ia9293b59696ac693f9bffb4d3505ea8fa2d59784 Reviewed-on: https://cl.tvl.fyi/c/depot/+/4810 Tested-by: BuildkiteCI Reviewed-by: wpcarro Autosubmit: wpcarro --- users/wpcarro/emacs/.emacs.d/wpc/wpc-misc.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'users/wpcarro') diff --git a/users/wpcarro/emacs/.emacs.d/wpc/wpc-misc.el b/users/wpcarro/emacs/.emacs.d/wpc/wpc-misc.el index b4150c4f6a5e..508a5b90c441 100644 --- a/users/wpcarro/emacs/.emacs.d/wpc/wpc-misc.el +++ b/users/wpcarro/emacs/.emacs.d/wpc/wpc-misc.el @@ -36,8 +36,9 @@ (load custom-file 'noerror) ;; integrate Emacs with X11 clipboard -(setq select-enable-primary t) -(setq select-enable-clipboard t) +(customize-set-variable 'select-enable-primary t) +(customize-set-variable 'select-enable-clipboard t) +(fset 'evil-visual-update-x-selection 'ignore) (general-def 'insert "s-v" #'clipboard-yank "C-S-v" #'clipboard-yank) -- cgit 1.4.1