summaryrefslogtreecommitdiff
path: root/emacs/elisp/my-buffers.el
blob: d5c07c5261303247ac637bd17a4906f49e4c1107 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
;;; my-buffers.el --- Functions related to buffer manipulations
;;; Commentary:
;;; Code:

(defun my/copy-whole-buffer ()
  "Select the buffer and copy it."
  (interactive)
  (save-excursion
    (mark-whole-buffer)
    (copy-region-as-kill 1 (buffer-size))))

(provide 'my-buffers)
;;; my-buffers.el ends here