From 2e006908657ede8590b3fa5544fb05ffec061fc6 Mon Sep 17 00:00:00 2001 From: mattkae Date: Mon, 28 Nov 2022 08:18:55 -0500 Subject: Copy all function --- lisp/general.el | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lisp/general.el') diff --git a/lisp/general.el b/lisp/general.el index f9fb573..29cf9d6 100644 --- a/lisp/general.el +++ b/lisp/general.el @@ -298,5 +298,12 @@ (drag-stuff-global-mode) (drag-stuff-define-keys) +;; Copy the entire buffer. +(defun my-copy-all () + "Copy entire buffer to clipboard." + (interactive) + (clipboard-kill-ring-save (point-min) (point-max))) + + (provide 'general) ;;; general.el ends here -- cgit v1.2.1