Skip to main content

Questions tagged [copy-paste]

is about the editor operations cut, copy, and paste as they apply to Emacs. In Emacs, cut is called "kill" and paste is called "yank" (but Emacs enhances the standard cut and paste behavior).

0 votes
2 answers
50 views

How do I write a function to copy a region to the MacOS clipboard?

I'd like to be able to mark a region in a text buffer, hit an F-key, and have the contents of the region copied into the MacOS clipboard. From the shell you can do this by piping the text into the ...
Chap's user avatar
  • 187
1 vote
0 answers
21 views

How can I paste text from the system's xopy-paSTE buffer (for instance, from a web browser under Linux) into Emacs Evil-mode?

I was sure this question had already been asked, but I couldn't find it on this SE. I would like to paste text from Chrome's view page source, on Cinnamon on Linux Mint, into an Emacs window. The menu ...
Christos Hayward's user avatar
0 votes
0 answers
17 views

Copying attachments of sent mails in gnus

This is a very basic question. I often have to send the same attachments to different people so it would be convenient if I could copy them from my sent mails. I thought this would be very easy, since ...
Alexander Praehauser's user avatar
0 votes
1 answer
133 views

Use MacOS semantics for copy-paste

I use Emacs on MacOS, installed by homebrew: % ls -l /opt/homebrew/bin/emacs lrwxr-xr-x 1 kwilliams admin 44 Jan 31 2023 /opt/homebrew/bin/emacs@ -> /Applications/Emacs.app/Contents/MacOS/Emacs ...
Ken Williams's user avatar
1 vote
1 answer
72 views

Searching for text fragments by character text properties

The text to be processed has special words marked with a special font. The required text is copied to the clipboard with the mouse (from firefox). The text is pasted into the clipboard emacs("...
uanr81's user avatar
  • 169
1 vote
2 answers
44 views

can't use `isearch-yank-word-or-char` in minibuffer-local-map?

I'd like to have occur's prompt in the minibuffer do the same that isearch does: C-w inserts the word at point in the main buffer into the minibuffer prompt. That keybinding, when doing isearch, calls ...
Dan Drake's user avatar
  • 655
0 votes
0 answers
27 views

When running `term` in standalone emacs on OSX, how can I copy output?

This question maybe sounds a bit strange, but I can't for the life of me work out how to copy output from term when it is running in the standalone version ("standalone" as in when emacs ...
Fergie's user avatar
  • 213
0 votes
1 answer
58 views

Copy text at line N at point

How can I make a function that copies text from line number N at point? I will be at some specific line and point position and want to copy the text from a different line N.
Dilna's user avatar
  • 1
1 vote
3 answers
142 views

Using Emacs to find and copy relevant database records

I have reduced a large text file to a 1.9GB size that Microsoft Access can handle, but only as a linked file. To permit full Access operations - to import the relevant data into Access - I need to ...
Ray Woodcock's user avatar
1 vote
1 answer
496 views

Copy with Line Numbers

I have line-numbers displayed, but when I copy the text, the normal behavior is of course to not include the line numbers in the copied text. However, when I want to paste something on sites like this ...
Jason Hunter's user avatar
2 votes
2 answers
111 views

ctrl+backspace overwrites copy buffer

When I copy something first and then want to paste after I delete something, if I delete with CTRL+Backspace it pastes what I deleted when I CTRL+V (I can copy with CTRL+C and paste with CTRL+V in ...
efe373's user avatar
  • 19
3 votes
2 answers
735 views

How to repeat the last yank command N times?

I'm just not able able to replicate the answer on this. Starting with: lipsum I do (my interpretaton): Alt-W over the word (copy) Enter (new line) Ctrl-Y (paste) Alt-2 Ctrl-X z (repeat last two ...
user avatar
0 votes
0 answers
104 views

(setq select-enable-primary t) breaks copy/paste in Emacs 28

After I updated Cygwin W32 to v28 selection of text started to copy the value to clipboard. I use selection to replace existing text with one from buffer but now the text is replaced with itself ...
gavenkoa's user avatar
  • 3,462
0 votes
1 answer
908 views

How can I copy the text to the clipboard while using spacemacs?

I know that on emacs I can install the xclip package in order to be able to copy text to the system clipboard... With the xclip package installed and adding the following to my .emacs file, I can copy ...
raylight's user avatar
  • 237
0 votes
0 answers
36 views

Org-capture: not able to copy paste image in transient buffer

Basically that: when I try to capture on the fly ideas with images, I can't paste them. Org-capture seems to only work for text. Any ideas on how to bypass this limitation? Thanks! I just noted this ...
Emmanuel Goldstein's user avatar

15 30 50 per page
1
2 3 4 5
10