Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spacemacs using the mouse to copy paste

Tags:

spacemacs

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.

like image 671
J. Dunne Avatar asked Jun 04 '16 14:06

J. Dunne


People also ask

How do you paste into Spacemacs?

Custom Copy Paste Command. Setting xclipboard-copy-command for copy, xclipboard-paste-command for paste.

What is the command for pasting in Emacs?

To cut the text, press C-w . To copy the text, press M-w . To paste the text, press C-y .

How do I copy from Emacs to clipboard?

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 ).

How do you copy in Emacs terminal?

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.


1 Answers

Put

(xterm-mouse-mode -1)

under user-config in your .spacemacs file should do the trick.

like image 171
Skiptomylu Avatar answered Sep 22 '22 11:09

Skiptomylu