aboutsummaryrefslogtreecommitdiff
path: root/bard-emacs-modules
diff options
context:
space:
mode:
Diffstat (limited to 'bard-emacs-modules')
-rw-r--r--bard-emacs-modules/bard-emacs-org.el18
1 files changed, 18 insertions, 0 deletions
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)