[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Auto-refreshing rendered images from org-babel

From: E Sabof
Subject: [O] Auto-refreshing rendered images from org-babel
Date: Wed, 05 Feb 2014 17:19:08 +0000
User-agent: mu4e; emacs

I have the org snippet below. What I would like, is to see the rendered image 
when I press C-c C-c. I can achieve this with the elisp snippet below. Is there 
a "proper", or at least a better way of doing this?


#+BEGIN_SRC dot :file files/graphviz/example1.png
digraph test {
    home [label = "Home"];
    prod [label = "Products"];
    news [label = "News"];
    cont [label = "Contact"];

    home -> {prod news cont}

 '((dot . t)

(defadvice org-babel-execute:dot (after refresh-images activate)
  (run-with-timer 1 nil 'org-display-inline-images))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]