From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: How to collect multiple source blocks with the same name at the same level Date: Wed, 05 Mar 2014 11:39:25 -1000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39135) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLJXR-0002iQ-Rh for emacs-orgmode@gnu.org; Wed, 05 Mar 2014 16:39:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WLJXL-0001yP-Ic for emacs-orgmode@gnu.org; Wed, 05 Mar 2014 16:39:41 -0500 Received: from qproxy1-pub.mail.unifiedlayer.com ([173.254.64.10]:43930) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1WLJXL-0001xW-BO for emacs-orgmode@gnu.org; Wed, 05 Mar 2014 16:39:35 -0500 In-Reply-To: (Grant Rettke's message of "Wed, 5 Mar 2014 15:14:39 -0600") 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: Grant Rettke Cc: "emacs-orgmode@gnu.org" Aloha Grant, I'm not certain what you're after. >From the Org mode manual: * outline header :PROPERTIES: :header-args: :cache yes :END: Perhaps :header-args: :tangle myfile.el All the best, Tom Grant Rettke writes: > Hi, > > My goal is to intersperse code blocks with comments about them like this: > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > Menu bars are not required [fn:38] > #+NAME: uxo-decision1 > #+BEGIN_SRC emacs-lisp > (menu-bar-mode 0) > #+END_SRC > > Don't need auto-save > #+NAME: uxo-decision2 > #+BEGIN_SRC emacs-lisp > (disable-auto-save) > #+END_SRC > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > And replace it with something like this: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > *** Setup > :PROPERTY: > :name: uxo-decision > :END > > Menu bars are not required [fn:38] > #+BEGIN_SRC emacs-lisp > (menu-bar-mode 0) > #+END_SRC > > Don't need auto-save > #+BEGIN_SRC emacs-lisp > (disable-auto-save) > #+END_SRC > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > Basically I'm going through a config file and want write a lot but to be > able to refer to all of the > snippets as a single ended and tangle them accordingly. What is the right > way to do this? > > My apologies for having to ask this; for some bizarre reason I am not > finding the example > to do this though I know I have read it. > > Regards, > > --=20 > Grant Rettke | ACM, AMA, COG, IEEE > gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/ > =E2=80=9CWisdom begins in wonder.=E2=80=9D --Socrates > ((=CE=BB (x) (x x)) (=CE=BB (x) (x x))) > =E2=80=9CLife has become immeasurably better since I have been forced to = stop > taking it seriously.=E2=80=9D --Thompson > Hi, > > My goal is to intersperse code blocks with comments about them like > this: > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > Menu bars are not required [fn:38] > #+NAME: uxo-decision1 > #+BEGIN_SRC emacs-lisp > (menu-bar-mode 0) > #+END_SRC > > Don't need auto-save > #+NAME: uxo-decision2 > #+BEGIN_SRC emacs-lisp > (disable-auto-save) > #+END_SRC > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > And replace it with something like this: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > *** Setup > :PROPERTY: > :name: uxo-decision > :END > > Menu bars are not required [fn:38] > #+BEGIN_SRC emacs-lisp > (menu-bar-mode 0) > #+END_SRC > > Don't need auto-save > #+BEGIN_SRC emacs-lisp > (disable-auto-save) > #+END_SRC > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > Basically I'm going through a config file and want write a lot but to > be able to refer to all of the > snippets as a single ended and tangle them accordingly. What is the > right way to do this? > > My apologies for having to ask this; for some bizarre reason I am not > finding the example > to do this though I know I have read it. > > Regards, --=20 Thomas S. Dye http://www.tsdye.com