Autoload some functions from org-download

This package is important to include screenshots in Org buffers, which in turn
might be important when working on Windows.
This commit is contained in:
Daniel - 2021-01-24 14:48:34 +01:00
parent b5dc549a4f
commit e2c0f4526c
No known key found for this signature in database
GPG Key ID: 1C7071A75BB72D64
1 changed files with 7 additions and 4 deletions

11
init.el
View File

@ -897,10 +897,6 @@
(mapcar #'timer--function timer-idle-list))
(run-with-idle-timer 200 t #'db/export-diary))
;; Drag-and-Drop images into org-mode buffer
(use-package org-download
:init (setq org-download-method 'attach))
;; Hack: The default implementation is too slow, because it is
;; parsing all properties of an entry by default. Lets simplify
;; this to only parse what we are looking for. This makes tag
@ -918,6 +914,13 @@
;; This is different in the original implementation
(org-entry-get pom property))))))
;; Drag-and-Drop images into org-mode buffer
(use-package org-download
:commands (org-download-yank
org-download-screenshot
org-download-clipboard)
:init (setq org-download-method 'attach))
(use-package ol
:init (setq org-link-keep-stored-after-insertion t)
:commands (org-store-link))