We were unable to load Disqus. If you are a moderator please see our troubleshooting guide.

Theena Kumaragurunathan • 1 year ago

Thank you for this one. Worked immediately.

Jason Allan • 4 years ago

Thanks! Works great on my Mac...how could this be modified to work with Windows? I've been unsuccessful in my hack attempts...

Jason Allan • 4 years ago

ok I figured it out...of course right after I asked. It ain't pretty, but it works for both Windows and OS X. The trick was to install Image Magick with the legacy utilities.

(if (eq system-type 'darwin)
(setq system-screenshot-method "/usr/local/bin/pngpaste %s"))
(if (eq system-type 'windows-nt)
(setq system-screenshot-method "convert clipboard: %s"))

(use-package org-download
:after org
:defer nil
:custom
(org-download-method 'directory)
(org-download-image-dir "images")
(org-download-heading-lvl nil)
(org-download-timestamp "%Y%m%d-%H%M%S_")
(org-image-actual-width 300)
(org-download-screenshot-method system-screenshot-method)
:bind
("C-M-y" . org-download-screenshot)
:config
(require 'org-download))

Emmanuel Goldstein • 5 years ago

Thanks for this! How does setq-default org-download-image influence or affect your settings?