Questions tagged [yank]

Emacs' name for 'paste' (the one that goes together with copy).

Filter by
Sorted by
Tagged with
1
vote
1answer
143 views

Yanking without moving the mark, but still be able to `yank-pop`

I would like to change C-y to not move the mark, but still be able to yank-pop. I looked at the source code and saw that the major change needed was to remove the (push-mark (point)) command: (defun ...
2
votes
1answer
488 views

How do I disable the emacs flyspell middle mouse correction?

I already use middle mouse to paste/yank. However flyspell seems to hijack this, making it impossible to paste in the vicinity of a correctable word. With the help of this question I have discovered ...
2
votes
2answers
820 views

Evil mode pasting under line

I'm trying to achieve the following with this: $pricelist = pricelist(); $hotels[$index ]['id'] I want to copy the bottom line into the pricelist() function like this: $pricelist = pricelist($...
0
votes
0answers
438 views

Kill ring not synchronizing with clipboard in Windows

I have been using Emacs 24 on Windows 7 for almost a year without any issues. But recently, kill-ring in my Emacs has stopped synchronizing with clipboard (actually whatever I copy from within Emacs ...
5
votes
1answer
3k views

Copy and paste to system clipboard in tmux

I have the following code in my init.el (xclip-mode +1) (setq x-select-enable-clipboard t x-select-enable-primary t x-select-request-type '(UTF8_STRING COMPOUND_TEXT TEXT STRING) x-stretch-...
0
votes
1answer
100 views

How to interactivelly pass a `listp arg` to `yank`

Is it possible to interactively pass an argument that matches listp to the function yank so that current-kill receives an argument of 0? If so, how please can that be achieved? Background: I am ...
2
votes
2answers
993 views

Is CUA Mode good over usual Emacs Cut and yank commands [closed]

Just wanted to capture the advantages of CUA mode over the usual emacs copy and paste commands. One advantage which is quite obvious is it similar to the keybindings which are present in other editors....
8
votes
2answers
356 views

How to overwrite a copied rectangle instead of inserting it (which is the default behavior of yank-rectangle)?

After copying a "rectangle" using C-x r M-w, doing C-x r y yanks or pastes the rectangle. But that inserts the copied rectangle. How can I paste the copied rectangle so that it overwrites the text? ...
8
votes
4answers
482 views

Fastest way to move code block to specific line

Say you have code on lines 4, 5, 6. Then you want to move this block of code to starting point line 9 while also deleting lines 4, 5, 6. What's the fastest way, i.e. least amount of key strokes, to ...