From mboxrd@z Thu Jan 1 00:00:00 1970 From: E Sabof Subject: Auto-refreshing rendered images from org-babel Date: Wed, 05 Feb 2014 17:19:08 +0000 Message-ID: <874n4dh3zn.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35711) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WB689-0003AB-Og for emacs-orgmode@gnu.org; Wed, 05 Feb 2014 12:19:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WB67z-0002RU-K3 for emacs-orgmode@gnu.org; Wed, 05 Feb 2014 12:19:21 -0500 Received: from mail-wg0-x22d.google.com ([2a00:1450:400c:c00::22d]:45780) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WB67z-0002QR-ED for emacs-orgmode@gnu.org; Wed, 05 Feb 2014 12:19:11 -0500 Received: by mail-wg0-f45.google.com with SMTP id n12so522073wgh.24 for ; Wed, 05 Feb 2014 09:19:10 -0800 (PST) Received: from ubuntu ([2.125.179.120]) by mx.google.com with ESMTPSA id ju6sm62987158wjc.1.2014.02.05.09.19.09 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 05 Feb 2014 09:19:09 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Org-mode 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? Evgeni #+BEGIN_SRC dot :file files/graphviz/example1.png digraph test { size="6,5"; home [label = "Home"]; prod [label = "Products"]; news [label = "News"]; cont [label = "Contact"]; home -> {prod news cont} } #+END_SRC (org-babel-do-load-languages 'org-babel-load-languages '((dot . t) )) (defadvice org-babel-execute:dot (after refresh-images activate) (run-with-timer 1 nil 'org-display-inline-images))