Fix #3056: image previews for attachment links
This commit is contained in:
parent
5b23b3d486
commit
994028b1e9
1 changed files with 4 additions and 1 deletions
|
@ -374,7 +374,10 @@ underlying, modified buffer. This fixes that."
|
||||||
(unless org-attach-id-dir
|
(unless org-attach-id-dir
|
||||||
(setq org-attach-id-dir (expand-file-name ".attach/" org-directory)))
|
(setq org-attach-id-dir (expand-file-name ".attach/" org-directory)))
|
||||||
(after! projectile
|
(after! projectile
|
||||||
(add-to-list 'projectile-globally-ignored-directories org-attach-id-dir))))
|
(add-to-list 'projectile-globally-ignored-directories org-attach-id-dir)))
|
||||||
|
|
||||||
|
;; Add inline image previews for attachment links
|
||||||
|
(org-link-set-parameters "attachment" :image-data-fun #'+org-inline-image-data-fn))
|
||||||
|
|
||||||
|
|
||||||
(defun +org-init-custom-links-h ()
|
(defun +org-init-custom-links-h ()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue