Last active
October 21, 2015 09:55
-
-
Save Zolomon/61ef174234d41276a7cb to your computer and use it in GitHub Desktop.
copy-buffer.el
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;; copy buffer | |
| (defun copy-buffer () | |
| "Copies the whole buffer, without moving the cursor point." | |
| (interactive) | |
| (copy-region-as-kill (point-min) (point-max))) | |
| (defun copy-buffer-with-notification () | |
| "Copies the whole buffer, without moving the cursor point, and writes upon completion in the minibuffer." | |
| (interactive) | |
| (copy-buffer) | |
| (message "Copied buffer!")) | |
| (global-set-key (kbd "C-c z") 'copy-buffer-with-notification) | |
| ;; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment