mirror of
https://github.com/correl/dotfiles.git
synced 2024-12-18 11:06:17 +00:00
[emacs] Reload org inline images on babel execute
This commit is contained in:
parent
b59916ff1a
commit
d59949647b
1 changed files with 11 additions and 0 deletions
|
@ -459,6 +459,17 @@ languages. Setting ~Confirm Evaluation~ to ~No~ disables the
|
||||||
(use-package ob-http
|
(use-package ob-http
|
||||||
:ensure t)
|
:ensure t)
|
||||||
#+end_src
|
#+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
|
*** LaTeX
|
||||||
**** AUCTeX
|
**** AUCTeX
|
||||||
#+name: packages
|
#+name: packages
|
||||||
|
|
Loading…
Reference in a new issue