org-inline-image-mode is a minor mode for Emacs that automatically
updates inline images in org-mode buffers after certain events occur.
For example, after executing an org-babel block.
I’m lazy. So for now, just pull the file from git.
Instead of using org-toggle-inline-images you can simply toggle this
minor mode:
M-x load-library RET org-inline-image-mode RETM-x org-inline-image-mode RET
The current version only triggers an image update after org-babel
source blocks are executed. To add another event, add a hook to the
org-inline-image-hooks variable:
;; Update images after saving a buffer:
(add-to-list 'org-inline-image-hooks 'after-save-hook)If you think a hook should be in the default set of hooks that trigger image updates, please open an issue.