From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ido Magal Subject: Embedded code Date: Mon, 17 Jan 2011 14:01:19 -0800 Message-ID: References: <2324250583714673900@unknownmsgid> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1161375801==" Return-path: Received: from [140.186.70.92] (port=34988 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pex8v-0002xt-Jk for emacs-orgmode@gnu.org; Mon, 17 Jan 2011 17:01:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pex8u-0005dM-MF for emacs-orgmode@gnu.org; Mon, 17 Jan 2011 17:01:41 -0500 Received: from mail-ww0-f41.google.com ([74.125.82.41]:61291) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pex8u-0005dG-Bc for emacs-orgmode@gnu.org; Mon, 17 Jan 2011 17:01:40 -0500 Received: by wwi18 with SMTP id 18so2509640wwi.0 for ; Mon, 17 Jan 2011 14:01:39 -0800 (PST) In-Reply-To: <2324250583714673900@unknownmsgid> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --===============1161375801== Content-Type: multipart/alternative; boundary=0016e6de00eea9afda049a11edca --0016e6de00eea9afda049a11edca Content-Type: text/plain; charset=UTF-8 Hello, Is it possible to put a block of code in a document such that it gets evaluated when the document is opened? For example, I'd like to have a link-back section in each note. I'm aware of babel but I neither understand how to make it auto-evaluate on open nor do i know if making it compact ( and avoid having code and result blocks ) is possible. I see examples where it's used for export but haven't seen one for general org usage. Thanks in advance. --0016e6de00eea9afda049a11edca Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Hello,

Is it possible to put a block of code in a document such that it gets evalu= ated=C2=A0when the document is opened? =C2=A0For example, I'd like to h= ave a=C2=A0link-back section in each note.
=
I'm aware of babel but I neither=C2=A0understand how to make it auto-ev= aluate on open nor do i know if
making it compact ( and avoid having code and result blocks ) is=C2=A0possi= ble. =C2=A0I see examples where it's used for export but haven't se= en one for general org usage.

Thanks in advance.

--0016e6de00eea9afda049a11edca-- --===============1161375801== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1161375801==--