From 93a65977f44879ed6939da7d5cfe39aa8e8e3157 Mon Sep 17 00:00:00 2001 From: bard Date: Fri, 3 May 2024 12:29:42 -0400 Subject: screen shots pasting --- bard-emacs-modules/bard-emacs-org.el | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'bard-emacs-modules/bard-emacs-org.el') diff --git a/bard-emacs-modules/bard-emacs-org.el b/bard-emacs-modules/bard-emacs-org.el index 4fa4ff2..48a80ce 100644 --- a/bard-emacs-modules/bard-emacs-org.el +++ b/bard-emacs-modules/bard-emacs-org.el @@ -163,4 +163,22 @@ "* [[%:link][%:description]] \nCaptured On: %U \n%?") ("b" "Blog Article" entry (file+olp "~/Code/bardmandev/content/_index.org" "Latest updates")))) +;;; Managing media + ;; inspired by https://zzamboni.org/post/how-to-insert-screenshots-in-org-documents-on-macos/ + +(use-package org-download + :after org + :defer nil + :custom + (org-download-method 'directory) + (org-download-image-dir "~/Notes/denote/Images") + (org-download-heading-lvl 0) + (org-download-timestamp "org_%Y%m%d-%H%M%S_") + (org-image-actual-width 900) + (org-download-screenshot-method "xclip -selection clipboard -t image/png -o > '%s'") + :bind + ("C-M-y" . org-download-screenshot) + :config + (require 'org-download)) + ;; (provide 'bard-emacs-org) -- cgit v1.2.3