]> git.donarmstrong.com Git - lib.git/commitdiff
reload images after execution
authorDon Armstrong <don@donarmstrong.com>
Sun, 21 Feb 2016 02:58:15 +0000 (18:58 -0800)
committerDon Armstrong <don@donarmstrong.com>
Tue, 1 Mar 2016 01:32:38 +0000 (17:32 -0800)
emacs_el/configuration/org-mode-configuration.el

index 356c99f3bb7adf927fad574ba22513dc16898427..eb850a27b3b167ef7988d43632de4b46920b0447 100644 (file)
@@ -470,7 +470,14 @@ Maildir, or by Message-ID."
               (org-export-backend-name backend)
             nil) ,@body))
 
+(defun my/fix-inline-images ()
+  (when org-inline-image-overlays
+    (org-redisplay-inline-images)))
 
+(after-loading
+ 'org
+ (add-hook 'org-babel-after-execute-hook
+           'my/fix-inline-images))
 
 ;; ;; org latex
 ;; ;; stolen from http://kieranhealy.org/esk/kjhealy.html