]> git.donarmstrong.com Git - lib.git/commitdiff
add fix for inline images
authorDon Armstrong <don@donarmstrong.com>
Tue, 23 Feb 2016 23:50:08 +0000 (15:50 -0800)
committerDon Armstrong <don@donarmstrong.com>
Tue, 23 Feb 2016 23:50:08 +0000 (15:50 -0800)
emacs_el/configuration/org-mode-configuration.el

index 973e00257177f5c0573457c1715623d06871e5b0..a9f394cd52313d21d52571e1707db9d12c63b9a0 100644 (file)
@@ -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.