about summary refs log tree commit diff
path: root/users/wpcarro/emacs/.emacs.d
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2021-11-09T05·45-0800
committerclbot <clbot@tvl.fyi>2022-01-08T05·42+0000
commitf1fbddb12138284c1e27569efa68e2da36c0354f (patch)
tree60b3b412e35d39ed127e969e67fbe81aea6c7aff /users/wpcarro/emacs/.emacs.d
parentea21339e5f73969ec429932b0a0812715443d2ef (diff)
fix(wpcarro/emacs): Restore ability to paste in visual mode r/3544
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 <wpcarro@gmail.com>
Autosubmit: wpcarro <wpcarro@gmail.com>
Diffstat (limited to 'users/wpcarro/emacs/.emacs.d')
-rw-r--r--users/wpcarro/emacs/.emacs.d/wpc/wpc-misc.el5
1 files changed, 3 insertions, 2 deletions
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)