emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Grant Rettke <gcr@wisdomandwonder.com>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: How to collect multiple source blocks with the same name at the same level
Date: Wed, 5 Mar 2014 15:14:39 -0600	[thread overview]
Message-ID: <CAAjq1mdLsR52ZnRLawC-GUCmM4Lz6JWY-4uRi5AiFCoaPn-LRA@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1346 bytes --]

Hi,

My goal is to intersperse code blocks with comments about them like this:

==================================
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
==================================
And replace it with something like this:
==================================
*** 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
==================================

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,

-- 
Grant Rettke | ACM, AMA, COG, IEEE
gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/
“Wisdom begins in wonder.” --Socrates
((λ (x) (x x)) (λ (x) (x x)))
“Life has become immeasurably better since I have been forced to stop
taking it seriously.” --Thompson

[-- Attachment #2: Type: text/html, Size: 2021 bytes --]

             reply	other threads:[~2014-03-05 21:14 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-05 21:14 Grant Rettke [this message]
2014-03-05 21:35 ` How to collect multiple source blocks with the same name at the same level Samuel Wales
2014-03-05 22:23   ` Grant Rettke
2014-03-05 21:39 ` Thomas S. Dye
2014-03-05 22:24   ` Grant Rettke
2014-03-05 22:30     ` Grant Rettke
2014-03-05 22:41 ` Aaron Ecay
2014-03-05 22:45   ` Aaron Ecay
2014-03-05 23:03   ` Grant Rettke

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAAjq1mdLsR52ZnRLawC-GUCmM4Lz6JWY-4uRi5AiFCoaPn-LRA@mail.gmail.com \
    --to=gcr@wisdomandwonder.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).