org/org-attach: support relative paths in inline images
This commit is contained in:
parent
c2bb5a0951
commit
902edfce24
2 changed files with 19 additions and 0 deletions
|
@ -44,6 +44,9 @@
|
|||
((executable-find "scrot")
|
||||
"scrot -s %s")))))
|
||||
|
||||
;; Ensure that relative inline image paths are relative to the attachment folder.
|
||||
(advice-add #'org-display-inline-images :around #'+org-attach*relative-to-attach-dir)
|
||||
|
||||
;; Handle non-image files a little differently. Images should be inserted
|
||||
;; as-is, as image previews. Other files, like pdfs or zips, should be linked
|
||||
;; to, with an icon indicating the type of file.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue