New answers tagged copy-paste
2
votes
Copy text at line N at point
(defun foo (n)
"Copy line N to the kill-ring.
N is the numeric prefix arg"
(interactive "p")
(save-excursion
(goto-char (point-min))
(forward-line (1- n))
(kill-...
- 72.6k
2
votes
Using Emacs to find and copy relevant database records
I am sharing my solution mainly for the comparison with AWK (see comments under NickD's answer), but also because it takes a slightly different approach than the solution by @orgtre:
This solution '...
- 4,960
1
vote
Using Emacs to find and copy relevant database records
Using Emacs for this problem is just not a good way to go about it. You can learn enough about awk in a few hours to deal with such problems
and the advantage is a short program that runs relatively ...
- 23.3k
3
votes
Accepted
Using Emacs to find and copy relevant database records
While, as others have pointed out, other tools might be more suitable for this job, it can certainly be done with Emacs. 1.9GB is not an unreasonably large file size for Emacs to handle on a somewhat ...
- 598
1
vote
ctrl+backspace overwrites copy buffer
When you delete text with C-<backspace> it is added to the kill-ring in front of the text you copied previously using C-c. You could of course change this behavior by binding something like (...
- 598
Top 50 recent answers are included
Related Tags
copy-paste × 143clipboard × 18
org-mode × 16
evil × 12
yank × 11
kill-ring × 11
osx × 7
terminal-emacs × 7
text-editing × 7
key-bindings × 6
mouse × 6
spacemacs × 5
microsoft-windows × 5
rectangle × 5
shell-command × 4
character-encoding × 4
tabs × 4
buffers × 3
region × 3
images × 3
formatting × 3
x11 × 3
vim-emulation × 3
selection × 3
magit × 2