unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Compleet buffer to clipboard
@ 2009-04-18 12:27 Decebal
  2009-04-18 16:27 ` Drew Adams
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Decebal @ 2009-04-18 12:27 UTC (permalink / raw)
  To: help-gnu-emacs

A lot of times I want to copy the complete buffer to the clipboard.
This is possible with:
    C-x h
    M-w

But one of the complications is that you lose your cursor position.
When you put in yor .emacs:
    (defun buffer-yank()
      (interactive)
      (kill-new (buffer-substring (point-min) (point-max))))

    (global-set-key (kbd "C-c C-a") 'buffer-yank)

Then you can use:
    C-c C-a
to copy the complete buffer to the clipboard.


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-04-21  7:40 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-18 12:27 Compleet buffer to clipboard Decebal
2009-04-18 16:27 ` Drew Adams
     [not found] ` <mailman.5623.1240072028.31690.help-gnu-emacs@gnu.org>
2009-04-18 16:39   ` Decebal
2009-04-18 17:41     ` B. T. Raven
2009-04-18 17:58       ` B. T. Raven
2009-04-19  5:51         ` Decebal
2009-04-20 19:18 ` Xah Lee
2009-04-21  6:55 ` Alan Mackenzie
     [not found] ` <mailman.5756.1240296937.31690.help-gnu-emacs@gnu.org>
2009-04-21  7:40   ` Decebal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).