lang/org: refresh inline images after executing src blocks

This commit is contained in:
Henrik Lissner 2019-10-22 17:58:30 -04:00
parent 8cedbc3b5d
commit fa9001aacb
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -98,6 +98,10 @@
;; Use major-mode native TAB indentation in SRC blocks ;; Use major-mode native TAB indentation in SRC blocks
(advice-add #'org-return-indent :after #'+org-fix-newline-and-indent-in-src-blocks-a) (advice-add #'org-return-indent :after #'+org-fix-newline-and-indent-in-src-blocks-a)
;; Refresh inline images after executing src blocks (useful for plantuml or
;; ipython, where the result could be an image)
(add-hook 'org-babel-after-execute-hook #'org-redisplay-inline-images)
;; `org-babel-get-header' was removed from org in 9.0. Quite a few babel ;; `org-babel-get-header' was removed from org in 9.0. Quite a few babel
;; plugins use it (like ob-spice), so until those plugins update, this ;; plugins use it (like ob-spice), so until those plugins update, this
;; polyfill will do: ;; polyfill will do: