I quite often use the mouse to highlight text and then press cmd-c
(Osx) to copy the highlighted text. However it seems that the cursor is not updated when I do this and so instead of copying the highlighted text to the register it copies from current cursor position to end of where I highlighted. What am I doing wrong? I dont want to keep remembering to click before select to move the cursor.
I am using evilmode.
Custom Copy Paste Command. Setting xclipboard-copy-command for copy, xclipboard-paste-command for paste.
To cut the text, press C-w . To copy the text, press M-w . To paste the text, press C-y .
An Emacs copy is the command kill-ring-save (usually bound to M-w ). A system copy is what you typically get from pressing C-c (or choosing "Edit->Copy" in a application window). An X copy is "physically" highlighting text with the mouse cursor. An Emacs paste is the command yank (usually bound to C-y ).
When you copy and paste text, the terminal does it : you're taking the text that the terminal displays and not the text that is in your emacs app. That's why you have to use terminal keybindings : Ctrl-Shift-C and Ctrl-Shift-V to copy and paste text.
Put
(xterm-mouse-mode -1)
under user-config in your .spacemacs file should do the trick.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With