From b956975835feb9c9c240f4f80c8c8d7b836f1fe9 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Tue, 23 Feb 2016 15:50:08 -0800 Subject: [PATCH] add fix for inline images --- emacs_el/configuration/org-mode-configuration.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/emacs_el/configuration/org-mode-configuration.el b/emacs_el/configuration/org-mode-configuration.el index 973e002..a9f394c 100644 --- a/emacs_el/configuration/org-mode-configuration.el +++ b/emacs_el/configuration/org-mode-configuration.el @@ -1000,6 +1000,12 @@ same directory as the org-buffer and insert a link to this file." (insert (concat "[[" my/org-insert-screenshot/filename "]]")) (org-display-inline-images)) +(defun my/fix-inline-images () + (when org-inline-image-overlays + (org-redisplay-inline-images))) + +(add-hook 'org-babel-after-execute-hook 'my/fix-inline-images) + ; from http://orgmode.org/Changes.html (defun my/org-repair-property-drawers () "Fix properties drawers in current buffer. -- 2.39.5