emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How to collect multiple source blocks with the same name at the same level
@ 2014-03-05 21:14 Grant Rettke
  2014-03-05 21:35 ` Samuel Wales
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Grant Rettke @ 2014-03-05 21:14 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

[-- 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 --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-03-05 23:03 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-05 21:14 How to collect multiple source blocks with the same name at the same level Grant Rettke
2014-03-05 21:35 ` 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

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).