From d59949647b626a4cf12e14bec6b8047636e53012 Mon Sep 17 00:00:00 2001 From: Correl Roush Date: Wed, 1 Jul 2015 09:14:08 -0400 Subject: [PATCH] [emacs] Reload org inline images on babel execute --- .emacs.d/emacs.org | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.emacs.d/emacs.org b/.emacs.d/emacs.org index c0d4617..77c57ec 100644 --- a/.emacs.d/emacs.org +++ b/.emacs.d/emacs.org @@ -459,6 +459,17 @@ languages. Setting ~Confirm Evaluation~ to ~No~ disables the (use-package ob-http :ensure t) #+end_src +***** Reload images on source execution +#+name: packages +#+begin_src emacs-lisp + (defun my/redisplay-org-images () + (when org-inline-image-overlays + (org-redisplay-inline-images))) + + (add-hook 'org-babel-after-execute-hook + 'my/redisplay-org-images) +#+end_src + *** LaTeX **** AUCTeX #+name: packages