|
From: | Decebal |
Subject: | Compleet buffer to clipboard |
Date: | Sat, 18 Apr 2009 05:27:38 -0700 (PDT) |
User-agent: | G2/1.0 |
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.
[Prev in Thread] | Current Thread | [Next in Thread] |