Skip to content

Commit

Permalink
automatically refresh to show code block results
Browse files Browse the repository at this point in the history
  • Loading branch information
eschulte committed Feb 12, 2014
1 parent 88cb21e commit 5e61347
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions epresent.el
Expand Up @@ -197,6 +197,7 @@
(setq org-src-fontify-natively epresent-src-fontify-natively) (setq org-src-fontify-natively epresent-src-fontify-natively)
(setq org-hide-emphasis-markers epresent-hide-emphasis-markers) (setq org-hide-emphasis-markers epresent-hide-emphasis-markers)
(setq org-pretty-entities epresent-pretty-entities) (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) (plist-put org-format-latex-options :scale epresent-format-latex-scale)
(when (string= "EPresent" (frame-parameter nil 'title)) (when (string= "EPresent" (frame-parameter nil 'title))
(delete-frame (selected-frame))) (delete-frame (selected-frame)))
Expand Down Expand Up @@ -363,6 +364,7 @@
(setq org-hide-pretty-entities t) (setq org-hide-pretty-entities t)
(setq mode-line-format epresent-mode-line) (setq mode-line-format epresent-mode-line)
(setq epresent-format-latex-scale (plist-get org-format-latex-options :scale)) (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 (let ((org-format-latex-options
(plist-put org-format-latex-options :scale 4.0))) (plist-put org-format-latex-options :scale 4.0)))
(org-preview-latex-fragment 16)) (org-preview-latex-fragment 16))
Expand Down

0 comments on commit 5e61347

Please sign in to comment.