From 6c250b32594927be95e71df6b944eaf87611a480 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Thu, 5 May 2022 14:46:15 +0200 Subject: [PATCH] Fixup svg screenshot function --- config.org | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.org b/config.org index 881bc96..06d2bc5 100644 --- a/config.org +++ b/config.org @@ -85,11 +85,11 @@ Since Emacs 27, we can take SVG screenshots! Emacs needs to be built with =cairo= to support this. #+begin_src emacs-lisp -(defun screenshot-svg () +(defun my/screenshot-svg () "Save a screenshot of the current frame as an SVG image. Saves to a temp file and puts the filename in the kill ring." (interactive) - (let* ((filename (make-temp-file "Emacs" nil ".svg")) + (let ((filename (make-temp-file "Emacs" nil ".svg")) (data (x-export-frames nil 'svg))) (with-temp-file filename (insert data))