Permalink
Browse files

automatically refresh to show code block results

  • Loading branch information...
1 parent 88cb21e commit 5e61347bf4b8506b754c0386aa1435db23468143 @eschulte committed Feb 12, 2014
Showing with 2 additions and 0 deletions.
  1. +2 −0 epresent.el
View
2 epresent.el
@@ -197,6 +197,7 @@
(setq org-src-fontify-natively epresent-src-fontify-natively)
(setq org-hide-emphasis-markers epresent-hide-emphasis-markers)
(setq org-pretty-entities epresent-pretty-entities)
+ (remove-hook 'org-babel-after-execute-hook 'epresent-refresh)
(plist-put org-format-latex-options :scale epresent-format-latex-scale)
(when (string= "EPresent" (frame-parameter nil 'title))
(delete-frame (selected-frame)))
@@ -363,6 +364,7 @@
(setq org-hide-pretty-entities t)
(setq mode-line-format epresent-mode-line)
(setq epresent-format-latex-scale (plist-get org-format-latex-options :scale))
+ (add-hook 'org-babel-after-execute-hook 'epresent-refresh)
(let ((org-format-latex-options
(plist-put org-format-latex-options :scale 4.0)))
(org-preview-latex-fragment 16))

0 comments on commit 5e61347

Please sign in to comment.