Questions tagged [clipboard]

59 questions
28
votes
2 answers

Add operating system clipboard to kill ring

Often I find myself copying a code snippet into my operating system's clipboard from the internet. Then, I take the following simple steps: Switch to my Emacs window Find the place where I want to paste the code Use C-y (yank) to insert the copied…
nispio
  • 8,175
  • 2
  • 35
  • 73
21
votes
1 answer

evil-mode visual selection copies text to clipboard automatically

Setup: GUI version GNU Emacs 25.0.50.1 (x86_64-w64-mingw32) of 2015-07-25 on KAEL Compiled from EmacsW64. Package Evil, using the latest version of Evil from MELPA Windows 7 x64 bit. Situation: Tested with empty Emacs configuration with only Evil…
ReneFroger
  • 3,855
  • 22
  • 63
20
votes
2 answers

Completely disable all auto-indentation

How do I completely disable all auto-indentation in Emacs? I need to disable it at least for Fundamental mode, but I'm fine with it being disabled globally for the current session. Please read the rest of this question before declaring it a…
Mr Fooz
  • 303
  • 1
  • 2
  • 6
9
votes
3 answers

How to push system clipboards to kill ring contents at real-time when I copy outside emacs?

I noticed that when I copy thing outside of Emacs, the thing does not appear to kill ring immediately except I yank it to Emacs. If I copy twice, only the last copy can be got by yank. Sometimes, I would like to push the copys from system…
Leu_Grady
  • 2,420
  • 1
  • 17
  • 27
8
votes
3 answers

Pasting images from clipboard into Orgmode

I have seen some posts on this but I decided to ask anyway since this is an important feature many users are requesting: the ability to copy an image from eg., Chrome and paste it into Emacs Orgmode buffer. Is this possible in 2022?
8
votes
2 answers

Yank a column of text copied from the clipboard

I often seem to want to copy paste multiple columns, for example, I paste one column line one line two line three Now I'd like to be able to yank another column behind it. Assuming my kill buffer has the following: added to one added to two added…
hbogert
  • 191
  • 1
  • 6
6
votes
1 answer

How can I clear the contents of the clipboard before calling clipboard-kill-region?

I use clipboard-kill-region to copy contents from Emacs to other programs. But sometimes, it copies the same content twice into the clipboard. It looks like, /home/user/.emacs/home/user/.emacs when I copy the filename /home/user/.emacs Is there…
Madhavan
  • 1,957
  • 12
  • 28
5
votes
1 answer

saving clipboard takes forever on quit

When closing spacemacs, I get the message "Saving clipboard to x clipboard manager...". The saving process ends up taking so much time that I have to kill emacs from the terminal. How can I disable emacs from doing this process upon quitting? Or at…
Piglet
  • 146
  • 4
5
votes
0 answers

Emacs: mark contents as type image in copy to clipboard

When using pdf-tools (https://github.com/politza/pdf-tools) I'd like to be able to select and area and copy it to the clipboard as an image, so as to insert into other applications. Selecting is easy from pdf-tools, but pasting into other…
4
votes
0 answers

Pasting images into Org

I'd like to paste images from the system clipboard into an Org file. Emacs should write the clipboard content to a suitable file (likely an attachment) and insert a suitable link (see https://orgmode.org/manual/Images.htm) to it at point. Has this…
Nova
  • 1,059
  • 9
  • 21
4
votes
2 answers

Copy and paste between Emacs in an X terminal and other X applications

I am running Emacs in Gnome-terminal on Ubuntu. The way I know to copy and paste between emacs and other applications is by Ctrl+C and Ctrl+V, which I think is by the terminal emulator. A problem with that is it will copy the line continuation…
Tim
  • 4,987
  • 7
  • 31
  • 60
4
votes
0 answers

copy to clipboard without overwriting kill ring

I'm looking for a way to copy to clipboard from emacs without passing through the kill-ring, moving the marker or using the mouse. If I use x-select-enable-primary and x-select-enable-clipboard, I can unite the clipboard and the kill-ring, but it is…
user2141046
  • 143
  • 4
4
votes
0 answers

Emacs takes a very long time to read/save to the clipboard

Sometimes emacs takes a very long time (+ 30 seconds) to read from or save to the system (Linux) clipboard. The entire emacs session hangs while it does this and I can't cancel it with C-g or ESC ESC ESC or anything. This seems to happen at random,…
Alex
  • 1,028
  • 5
  • 20
4
votes
2 answers

how to push kill-ring contents onto system pasteboard (clipboard)?

I use the brilliant answer from my previous question to copy selected regions of text from Emacs onto my system pasteboard (i.e. the OSX clipboard). But some functions (e.g. gist-buffer) push output (e.g. a URL) onto the Emacs kill ring, and I'd…
incandescentman
  • 4,111
  • 16
  • 53
3
votes
2 answers

Deleting words while preserving clipboard

Is there a way to keep the clipboard contents when deleting entire words with M-DEL? For instance, I'd like to delete a word (M-DEL) and then paste (C-y) what I had previously copied (with ctrl+c) from a different application. Is this possible?
Ricky Robinson
  • 267
  • 2
  • 10
1
2 3 4