org-download

a fork of abo-abo's org-download
git clone https://git.trogloxene.org/org-download.git
Log | Files | Refs | README

commit 3f0c5ef15589f02a51a4c58a6ff1713310aa3fc7
parent f99f884c47586ac8689b11c20eb95b2976c74d7c
Author: Takeshi Teshima <takeshi.diadochos@gmail.com>
Date:   Fri,  6 Jan 2017 10:34:18 +0900

Refactor code (create config variable)

Diffstat:
Morg-download.el | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/org-download.el b/org-download.el @@ -281,6 +281,10 @@ The screenshot tool is determined by `org-download-screenshot-method'." "Function that takes LINK and returns a string. It's inserted before the image link and is used to annotate it.") +(defvar org-download-link-format + "[[file:%s]]" + "Format of the file link to insert.") + (defun org-download-image (link) "Save image at address LINK to `org-download--dir'." (interactive "sUrl: ") @@ -329,7 +333,7 @@ It's inserted before the image link and is used to annotate it.") (if (= org-download-image-latex-width 0) "" (format "#+attr_latex: :width %dcm\n" org-download-image-latex-width)) - (format "[[file:%s]]" (file-relative-name filename (file-name-directory (buffer-name)))))) + (format org-download-link-format (file-relative-name filename (file-name-directory (buffer-name)))))) (org-display-inline-images)) (defun org-download--at-comment-p ()